Exemplo n.º 1
0
 def test_(self):
     gitcommit = GitRepoHelper._get_last_commit(self.repo)
     self.assertIsInstance(gitcommit, GitCommit.GitCommit)
Exemplo n.º 2
0
 def test_(self):
     gitcommit = GitRepoHelper._get_last_commit(self.repo)
     self.assertEquals(GitRepoHelper._get_file_path(gitcommit), "README.md")
     content = GitRepoHelper._get_file_content(self.repo, gitcommit)
     self.assertEquals(b64decode(content), "# testpygithub")