Add test for --no-listing.

This commit is contained in:
Emil Mikulic
2015-05-19 21:23:14 +10:00
parent fc8e127bb7
commit e9aeaba7fe
3 changed files with 27 additions and 0 deletions

15
devel/test_no_listing.py Executable file
View File

@@ -0,0 +1,15 @@
#!/usr/bin/env python
# This is run by the "cover" script.
import unittest
from test import TestHelper, Conn, parse
class TestNoListing(TestHelper):
def test_no_listing(self):
resp = self.get("/")
status, hdrs, body = parse(resp)
self.assertContains(status, "404 Not Found")
if __name__ == '__main__':
unittest.main()
# vim:set ts=4 sw=4 et: