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

Method testHttp

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

Source from the content-addressed store, hash-verified

68 )
69
70 def testHttp(self):
71 g = github.Github(auth=self.oauth_token, base_url="http://my.enterprise.com")
72 self.assertListKeyEqual(
73 g.get_user().get_repos(),
74 lambda r: r.name,
75 [
76 "TestPyGithub",
77 "django",
78 "PyGithub",
79 "developer.github.com",
80 "acme-public-website",
81 "C4Planner",
82 "Hacking",
83 "vincent-jacques.net",
84 "Contests",
85 "Candidates",
86 "Tests",
87 "DrawTurksHead",
88 "DrawSyntax",
89 "QuadProgMm",
90 "Boost.HierarchicalEnum",
91 "ViDE",
92 ],
93 )
94
95 def testUnknownUrlScheme(self):
96 with self.assertRaises(AssertionError) as raisedexp:

Callers

nothing calls this directly

Calls 3

get_userMethod · 0.95
assertListKeyEqualMethod · 0.80
get_reposMethod · 0.45

Tested by

no test coverage detected