|
@@ -358,7 +358,7 @@ class TestHttpHandler(unittest.TestCase):
|
|
|
self.client.putrequest('GET', stats_httpd.XSL_URL_PATH + '/Foo')
|
|
|
self.client.endheaders()
|
|
|
response = self.client.getresponse()
|
|
|
- self.assertEqual(response.status, 200)
|
|
|
+ self.assertEqual(response.status, 404)
|
|
|
|
|
|
# 404 NotFound (nonexistent item name)
|
|
|
self.client._http_vsn_str = 'HTTP/1.0'
|
|
@@ -375,7 +375,7 @@ class TestHttpHandler(unittest.TestCase):
|
|
|
self.client.putrequest('GET', stats_httpd.XSL_URL_PATH + '/Foo/bar')
|
|
|
self.client.endheaders()
|
|
|
response = self.client.getresponse()
|
|
|
- self.assertEqual(response.status, 200)
|
|
|
+ self.assertEqual(response.status, 404)
|
|
|
|
|
|
# 404 NotFound (existent module but nonexistent item name)
|
|
|
self.client._http_vsn_str = 'HTTP/1.0'
|
|
@@ -392,7 +392,7 @@ class TestHttpHandler(unittest.TestCase):
|
|
|
self.client.putrequest('GET', stats_httpd.XSL_URL_PATH + '/Auth/bar')
|
|
|
self.client.endheaders()
|
|
|
response = self.client.getresponse()
|
|
|
- self.assertEqual(response.status, 200)
|
|
|
+ self.assertEqual(response.status, 404)
|
|
|
|
|
|
def test_do_GET_failed1(self):
|
|
|
# checks status
|