8be7ac46f0ec

Fix web tests

The index page always returns a 200 http status, even with an unknown revision
[view raw] [browse files]
author Christophe de Vienne <cdevienne@gmail.com>
date Fri, 21 Nov 2014 18:35:45 +0100
parents 9030dc9517cf
children 87fcb432d230
branches/tags (none)
files review/tests/test_web.py

Changes

--- a/review/tests/test_web.py	Mon Jul 02 22:32:48 2012 +0200
+++ b/review/tests/test_web.py	Fri Nov 21 18:35:45 2014 +0100
@@ -26,13 +26,13 @@
         rv = self.app.get('/')
         eq_(rv.status_code, 200)
 
-    def test_index_unknown_rev(self):
+    def test_index_high_rev(self):
         rv = self.app.get('/%s/' % NON_EXISTENT_REV)
-        eq_(rv.status_code, 404)
+        eq_(rv.status_code, 200)
 
     def test_index_known_rev(self):
         rv = self.app.get('/0/')
-        eq_(rv.status_code, 404)
+        eq_(rv.status_code, 200)
 
 if __name__ == '__main__':
-    unittest.main()
\ No newline at end of file
+    unittest.main()