MCPcopy Index your code
hub / github.com/PyGithub/PyGithub / testLongUrl

Method testLongUrl

tests/Enterprise.py:100–125  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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")

Callers

nothing calls this directly

Calls 3

get_userMethod · 0.95
assertListKeyEqualMethod · 0.80
get_reposMethod · 0.45

Tested by

no test coverage detected