Fixing Hudson, since I don't think cvan ran his tests :)

This commit is contained in:
Gregory Koberger 2011-03-30 19:38:58 -07:00
Родитель 2d4c04996a
Коммит 79a225f985
1 изменённых файлов: 4 добавлений и 3 удалений

Просмотреть файл

@ -561,14 +561,15 @@ class TestDetailPage(test_utils.TestCase):
eq_(addon.status, amo.STATUS_PUBLIC)
settings.ENGAGE_ROBOTS = True
doc = pq(self.client.get(url).content)
assert doc(m)
assert not doc(m)
settings.ENGAGE_ROBOTS = False
doc = pq(self.client.get(url).content)
assert not doc(m)
assert doc(m)
addon.update(status=amo.STATUS_UNREVIEWED)
settings.ENGAGE_ROBOTS = False
doc = pq(self.client.get(url).content)
assert not doc(m)
assert doc(m)
settings.ENGAGE_ROBOTS = True
doc = pq(self.client.get(url).content)
assert doc(m)