Ejemplo n.º 1
0
 def test_known_error(self):
     """Test that a call to a known location returns 200 response."""
     tc = TwoHundredTestCase(self.failure)
     self.assertFalse(tc.test_2xx().result)
Ejemplo n.º 2
0
 def test_content_type(self):
     """Test that a test case with a generic content type returns a 200 response."""
     tc = TwoHundredTestCase(self.layer_test)
     self.assertTrue(tc.test_2xx().result)
Ejemplo n.º 3
0
 def test_payload(self):
     tc = TwoHundredTestCase(self.google)
     self.assertNotEquals(tc.test_2xx().payload, '')
Ejemplo n.º 4
0
 def test_known_200(self):
     """Test that a call to a known location returns 200 response."""
     tc = TwoHundredTestCase(self.google)
     self.assertTrue(tc.test_2xx().result)