Skip to content

Commit 756458d

Browse files
committed
Added tests for private user data.
1 parent c0a1da4 commit 756458d

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

tests/test_user.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,14 @@ def test_is_authenticated(self):
4141
user = self.client.users.show('fake_jnrowe_with_auth')
4242
assert_true(user.is_authenticated() is True)
4343

44+
def test_private_data(self):
45+
user = self.client.users.show('fake_jnrowe_with_auth')
46+
assert_equals(user.total_private_repo_count, 0)
47+
assert_equals(user.collaborators, 0)
48+
assert_equals(user.disk_usage, 66069)
49+
assert_equals(user.owned_private_repo_count, 0)
50+
assert_equals(user.private_gist_count, 7)
51+
4452

4553
class UserQueries(utils.HttpMockTestCase):
4654
"""Test user querying """

0 commit comments

Comments
 (0)