(self)
| 198 | self.assertEqual(exc.exception.data["error"], "some_unknown_error") |
| 199 | |
| 200 | def testRefreshAccessTokenBadCode(self): |
| 201 | with self.assertRaises(github.BadCredentialsException) as exc: |
| 202 | self.app.refresh_access_token("oauth_code_removed") |
| 203 | self.assertIsNone(exc.exception.message) |
| 204 | self.assertEqual(exc.exception.status, 200) |
| 205 | self.assertIn("error", exc.exception.data) |
| 206 | self.assertEqual(exc.exception.data["error"], "bad_verification_code") |
| 207 | |
| 208 | def testRefreshAccessTokenUnknownError(self): |
| 209 | with self.assertRaises(github.GithubException) as exc: |
nothing calls this directly
no test coverage detected