예제 #1
0
 def test_non_existent_url(self):
     status_code, content = plushcap.contact_url(self.non_existent_url)
     self.assertEqual(status_code, plushcap.CONNECTION_ERROR)
예제 #2
0
 def test_working_url(self):
     status_code, content = plushcap.contact_url(self.working_url)
     self.assertEqual(status_code, 200)