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

Method testGetFileContents

tests/Issue140.py:54–61  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

52 self.assertEqual(n, 2)
53
54 def testGetFileContents(self):
55 contents = self.repo.get_contents("js/bootstrap-affix.js")
56 self.assertEqual(contents.encoding, "base64")
57 self.assertEqual(
58 contents.url,
59 "https://api.github.com/repos/twitter/bootstrap/contents/js/bootstrap-affix.js",
60 )
61 self.assertEqual(len(contents.content), 4722)
62
63 def testGetDirContentsWithRef(self):
64 self.assertEqual(

Callers

nothing calls this directly

Calls 1

get_contentsMethod · 0.80

Tested by

no test coverage detected