def test_validate_service(self): responses.add("GET", "https://api.github.com/rate_limit", status=401) with pytest.raises(GithubException): validate_service({"username": "******", "password": "******"})
def test_validate_service(self): responses.add("GET", "/rate_limit", status=401) with self.assertRaises(GithubException): validate_service({"username": "******", "password": "******"})