(self)
| 483 | ) |
| 484 | |
| 485 | def testShouldCreateRateLimitExceededException(self): |
| 486 | for message in self.PrimaryRateLimitErrors + self.SecondaryRateLimitErrors: |
| 487 | with self.subTest(message=message): |
| 488 | exc = self.g._Github__requester.createException(403, {"header": "value"}, {"message": message}) |
| 489 | self.assertException( |
| 490 | exc, |
| 491 | github.RateLimitExceededException, |
| 492 | None, |
| 493 | 403, |
| 494 | {"message": message}, |
| 495 | {"header": "value"}, |
| 496 | f'403 {{"message": "{message}"}}', |
| 497 | ) |
| 498 | |
| 499 | def testShouldCreateUnknownObjectException(self): |
| 500 | exc = self.g._Github__requester.createException(404, {"header": "value"}, {"message": "Not Found"}) |
nothing calls this directly
no test coverage detected