Mark cppcheck executable.
[darkhttpd] / devel / test_server_id.py
1 #!/usr/bin/env python
2 # This is run by the "cover" script.
3 import unittest
4 from test import TestHelper, Conn, parse
5
6 class TestForward(TestHelper):
7 def test_no_server_id(self):
8 resp = Conn().get("/", method = 'BOGUS')
9 status, hdrs, body = parse(resp)
10 self.assertContains(status, "400 Bad Request")
11 self.assertFalse(hdrs.has_key("Server"))
12 self.assertFalse("Generated by darkhttpd/" in body)
13
14 if __name__ == '__main__':
15 unittest.main()
16
17 # vim:set ts=4 sw=4 et: