darkhttpd/devel/test_no_listing.py

16 lines
381 B
Python
Raw Normal View History

2015-05-19 14:23:14 +03:00
#!/usr/bin/env python
2016-01-23 12:05:02 +03:00
# This is run by the "run-tests" script.
2015-05-19 14:23:14 +03:00
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: