diff Tests/Tests.py @ 28:156c7ae164b5

new test
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 01 Jul 2015 12:10:30 +0200
parents cde1691838d3
children 1047d7bc5210
line wrap: on
line diff
--- a/Tests/Tests.py	Mon Jun 29 14:44:00 2015 +0200
+++ b/Tests/Tests.py	Wed Jul 01 12:10:30 2015 +0200
@@ -1283,6 +1283,10 @@
         self.assertTrue('store' in DoGet(_REMOTE, '/peers/peer'))
         self.assertTrue('matlab' in DoGet(_REMOTE, '/instances/%s/frames/0' % a))
         self.assertRaises(Exception, lambda: DoGet(_REMOTE, '/tools/nope'))
+        self.assertRaises(Exception, lambda: DoGet(_REMOTE, '/nope'))
+        self.assertRaises(Exception, lambda: DoGet(_REMOTE, '/nope/nope.html'))
+        self.assertEqual(404, DoGetRaw(_REMOTE, '/nope')[0].status)
+        self.assertEqual(404, DoGetRaw(_REMOTE, '/nope/nope.html')[0].status)
 
 
     def test_echo(self):