8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d6b787 commit dcad332Copy full SHA for dcad332
tests/test_repos.py
@@ -271,3 +271,23 @@ def test_with_auth(self):
271
expect(repo.remove_collaborator('jcordasc')).is_True()
272
except github3.GitHubError:
273
pass
274
+
275
276
+class TestBranch(base.BaseTest):
277
+ def __init__(self, methodName='runTest'):
278
+ super(TestBranch, self).__init__(methodName)
279
+ repo = self.g.repository(self.sigm, self.todo)
280
+ self.branch = repo.branch('master')
281
282
+ def test_commit(self):
283
+ expect(self.branch.commit).isinstance(Commit)
284
285
+ def test_links(self):
286
+ expect(self.branch.links).isinstance(dict)
287
288
+ def test_name(self):
289
+ expect(self.branch.name) == 'master'
290
291
292
+class TestContents(base.BaseTest):
293
+ pass
0 commit comments