Skip to content

Commit c6fa68a

Browse files
committed
Added tests for user plan data.
1 parent 756458d commit c6fa68a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/test_user.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,13 @@ def test_private_data(self):
4949
assert_equals(user.owned_private_repo_count, 0)
5050
assert_equals(user.private_gist_count, 7)
5151

52+
def test_plan_data(self):
53+
user = self.client.users.show('fake_jnrowe_with_auth')
54+
assert_equals(user.plan['name'], "free")
55+
assert_equals(user.plan['collaborators'], 0)
56+
assert_equals(user.plan['space'], 307200)
57+
assert_equals(user.plan['private_repos'], 0)
58+
5259

5360
class UserQueries(utils.HttpMockTestCase):
5461
"""Test user querying """

0 commit comments

Comments
 (0)