equal
deleted
inserted
replaced
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) |