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