(self)
| 65 | self.assertEqual(g.get_user("jacquev6").name, "Vincent Jacques") |
| 66 | |
| 67 | def testBasicAuthentication(self): |
| 68 | with self.assertWarns(DeprecationWarning) as warning: |
| 69 | g = github.Github("login", "password") |
| 70 | self.assertEqual(g.get_user("jacquev6").name, "Vincent Jacques") |
| 71 | self.assertWarning( |
| 72 | warning, |
| 73 | "Arguments login_or_token and password are deprecated, please use auth=github.Auth.Login(...) instead", |
| 74 | ) |
| 75 | |
| 76 | def testOAuthAuthentication(self): |
| 77 | with self.assertWarns(DeprecationWarning) as warning: |
nothing calls this directly
no test coverage detected