A few more test failure fixes after 3615 change.

This commit is contained in:
Rob Hudson 2012-05-31 10:50:55 -07:00
Родитель 69a6cae372
Коммит d42bb17c5e
2 изменённых файлов: 2 добавлений и 2 удалений

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

@ -280,7 +280,7 @@ class APITest(TestCase):
self.assertContains(response, "<name>Firefox</name>")
self.assertContains(response, "<application_id>1</application_id>")
self.assertContains(response, "<min_version>2.0</min_version>")
self.assertContains(response, "<max_version>3.7a1pre</max_version>")
self.assertContains(response, "<max_version>4.0</max_version>")
self.assertContains(response, "<os>ALL</os>")
self.assertContains(response, "<eula>")
self.assertContains(response, "/icons/no-preview.png</thumbnail>")

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

@ -151,7 +151,7 @@ class SearchTest(SphinxTestCase):
def test_version_restriction(self):
"""This tests that sphinx will properly restrict by version."""
eq_(query("Delicious version:3.6")[0].id, 3615)
eq_(len(query("Delicious version:4.0")), 0)
eq_(len(query("Delicious version:4.1")), 0)
eq_(len(query("Delicious version:10.2.152")), 0)
def test_sorts(self):