def test_http_post_status_check_false(self): """Test that the status check returns False for POST requst when the site does not exist""" http = HTTP('http://www.atrulybogussite.com') result = http.post_status_ok() self.assertEqual(False, result)
def test_http_post_status_check_true(self): """Test that the status check returns True for POST request when it should return True""" http = HTTP('http://httpbin.org/post') result = http.post_status_ok() self.assertEqual(True, result)