Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

That should wrap up any tests for the git module.

  • Loading branch information...
commit 22930286a254fa9395a428d6ac41677d09c5498e 1 parent d07fb52
@sigmavirus24 authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 tests/test_git.py
View
7 tests/test_git.py
@@ -43,8 +43,15 @@ def test_tree_and_hash(self):
hashes = tree.tree # Odd access, right?
for h in hashes:
expect(h).isinstance(Hash)
+ self.assertAreNotNone(h, 'mode', 'path', 'sha', 'size', 'type',
+ 'url')
def test_refs(self):
r = self.todor
ref = r.ref('heads/development')
expect(ref).isinstance(Reference)
+ self.assertAreNotNone(ref, 'object', 'ref')
+
+ with expect.raises(github3.GitHubError):
+ ref.delete()
+ ref.update('31e862095dffa60744f1ce16a431ea040381f053')

0 comments on commit 2293028

Please sign in to comment.
Something went wrong with that request. Please try again.