def test_request_valid(self): url_test2 = self.URL_VALID w = Wrecon() data = w.request_get(url_test2) self.assertEqual(data.status_code, 200)
def test_request_invalid_url(self): url_test2 = 'axxaxaxax' w = Wrecon() data = w.request_get(url_test2) self.assertEqual(data.status_code, 400)
def test_request_invalid_request(self): url_test2 = 'https://api.github.com/authorizations' w = Wrecon() data = w.request_get(url_test2) self.assertNotEqual(data.status_code, 200)