示例#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)
示例#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)
示例#3
0
 def test_payload(self):
     tc = TwoHundredTestCase(self.google)
     self.assertNotEquals(tc.test_2xx().payload, '')
示例#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)