コード例 #1
0
ファイル: tests.py プロジェクト: theseusyang/geoevents
 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
ファイル: tests.py プロジェクト: theseusyang/geoevents
 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
ファイル: tests.py プロジェクト: theseusyang/geoevents
 def test_payload(self):
     tc = TwoHundredTestCase(self.google)
     self.assertNotEquals(tc.test_2xx().payload, '')
コード例 #4
0
ファイル: tests.py プロジェクト: theseusyang/geoevents
 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)