(self)
| 98 | self.assertEqual(raisedexp.exception.args[0], "Unknown URL scheme") |
| 99 | |
| 100 | def testLongUrl(self): |
| 101 | g = github.Github(auth=self.oauth_token, base_url="http://my.enterprise.com/path/to/github") |
| 102 | repos = g.get_user().get_repos() |
| 103 | self.assertListKeyEqual( |
| 104 | repos, |
| 105 | lambda r: r.name, |
| 106 | [ |
| 107 | "TestPyGithub", |
| 108 | "django", |
| 109 | "PyGithub", |
| 110 | "developer.github.com", |
| 111 | "acme-public-website", |
| 112 | "C4Planner", |
| 113 | "Hacking", |
| 114 | "vincent-jacques.net", |
| 115 | "Contests", |
| 116 | "Candidates", |
| 117 | "Tests", |
| 118 | "DrawTurksHead", |
| 119 | "DrawSyntax", |
| 120 | "QuadProgMm", |
| 121 | "Boost.HierarchicalEnum", |
| 122 | "ViDE", |
| 123 | ], |
| 124 | ) |
| 125 | self.assertEqual(repos[0].owner.name, "Vincent Jacques") |
| 126 | |
| 127 | def testSpecificPort(self): |
| 128 | g = github.Github(auth=self.oauth_token, base_url="http://my.enterprise.com:8080") |
nothing calls this directly
no test coverage detected