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

Method testLazyAttributes

tests/Gist.py:107–111  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

105 self.assertEqual(repr(gist.files["GithubAPI.lua"]), 'GistFile(filename="GithubAPI.lua")')
106
107 def testLazyAttributes(self):
108 gist = self.g.withLazy(True).get_gist("gist")
109 self.assertEqual(str(gist), 'Gist(id="gist")')
110 self.assertEqual(gist.id, "gist")
111 self.assertEqual(gist.url, "/gists/gist")
112
113 def testEditWithoutParameters(self):
114 gist = self.g.get_gist("2729810")

Callers

nothing calls this directly

Calls 2

get_gistMethod · 0.80
withLazyMethod · 0.45

Tested by

no test coverage detected