(self)
| 433 | self.assertEqual(str(exception), string) |
| 434 | |
| 435 | def testShouldCreateBadCredentialsException(self): |
| 436 | exc = self.g._Github__requester.createException(401, {"header": "value"}, {"message": "Bad credentials"}) |
| 437 | self.assertException( |
| 438 | exc, |
| 439 | github.BadCredentialsException, |
| 440 | None, |
| 441 | 401, |
| 442 | {"message": "Bad credentials"}, |
| 443 | {"header": "value"}, |
| 444 | '401 {"message": "Bad credentials"}', |
| 445 | ) |
| 446 | |
| 447 | def testShouldCreateTwoFactorException(self): |
| 448 | exc = self.g._Github__requester.createException( |
nothing calls this directly
no test coverage detected