devtools/test/unittest_httptest.py
changeset 8695 358d8bed9626
parent 7071 db7608cb32bc
child 8930 6a02be304486
equal deleted inserted replaced
8694:d901c36bcfce 8695:358d8bed9626
    26 class TwistedCWAnonTC(CubicWebServerTC):
    26 class TwistedCWAnonTC(CubicWebServerTC):
    27 
    27 
    28     def test_response(self):
    28     def test_response(self):
    29         try:
    29         try:
    30             response = self.web_get()
    30             response = self.web_get()
    31         except httplib.NotConnected, ex:
    31         except httplib.NotConnected as ex:
    32             self.fail("Can't connection to test server: %s" % ex)
    32             self.fail("Can't connection to test server: %s" % ex)
    33 
    33 
    34     def test_response_anon(self):
    34     def test_response_anon(self):
    35         response = self.web_get()
    35         response = self.web_get()
    36         self.assertEqual(response.status, httplib.OK)
    36         self.assertEqual(response.status, httplib.OK)