From: Naoki Kambe Date: Fri, 26 Oct 2012 10:02:07 +0000 (+0900) Subject: [2298] revert checks of http status codes when requesting XSL URI with some path X-Git-Tag: trac2487_base~1^2~26^2~14 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d2b740366df5ca292c5d3fc6d66e056474f622ca;p=thirdparty%2Fkea.git [2298] revert checks of http status codes when requesting XSL URI with some path This is because in the case the daemon responds a 404 code. --- diff --git a/src/bin/stats/tests/b10-stats-httpd_test.py b/src/bin/stats/tests/b10-stats-httpd_test.py index fcef484256..412b524086 100644 --- a/src/bin/stats/tests/b10-stats-httpd_test.py +++ b/src/bin/stats/tests/b10-stats-httpd_test.py @@ -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