Esempio 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": "******"})
Esempio n. 2
0
 def test_validate_service(self):
     responses.add("GET", "/rate_limit", status=401)
     with self.assertRaises(GithubException):
         validate_service({"username": "******", "password": "******"})