(self)
| 182 | ) |
| 183 | |
| 184 | def testGetAccessTokenBadCode(self): |
| 185 | with self.assertRaises(github.BadCredentialsException) as exc: |
| 186 | self.app.get_access_token("oauth_code_removed", state="state_removed") |
| 187 | self.assertIsNone(exc.exception.message) |
| 188 | self.assertEqual(exc.exception.status, 200) |
| 189 | self.assertIn("error", exc.exception.data) |
| 190 | self.assertEqual(exc.exception.data["error"], "bad_verification_code") |
| 191 | |
| 192 | def testGetAccessTokenUnknownError(self): |
| 193 | with self.assertRaises(github.GithubException) as exc: |
nothing calls this directly
no test coverage detected