Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Cover users entirely.

  • Loading branch information...
commit 9c4a1133a7ce630cce455d94f478d4bd4c25aea7 1 parent 1504a47
Ian Cordasco sigmavirus24 authored
Showing with 13 additions and 3 deletions.
  1. +2 −2 github3/users.py
  2. +11 −1 tests/test_github.py
4 github3/users.py
View
@@ -71,14 +71,14 @@ def __init__(self, plan):
self.space = plan.get('space')
def __repr__(self):
- return '<Plan [{0}]>'.format(self.name)
+ return '<Plan [{0}]>'.format(self.name) # (No coverage)
def is_free(self):
"""Checks if this is a free plan.
:returns: bool
"""
- return self.name == 'free'
+ return self.name == 'free' # (No coverage)
_large = Plan({'name': 'large', 'private_repos': 50,
12 tests/test_github.py
View
@@ -255,7 +255,17 @@ def test_create_key(self):
'/Qbi5fi4Ipx3VFcLrdiOBbOQ==')
)
expect(key).isinstance(Key)
- self._g.delete_key(key.id)
+ expect(self._g.delete_key(key.id)).is_True()
+ key = self._g.create_key('test_key', (
+ 'ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAxGTCJTMYmsBhLL0PQ2RwLp3'
+ 'sgcJ8uz6RqOrlB/6lKzIXYOcvdaHqEEF9G+1xlJck7kA8pSNR9AkEWP2uoy'
+ '1tJVp4nUVzPYKSrkoMppzA34vT+iqW/H4rRCADxIRillvpXZB2CWQ8fbRlD'
+ '9Mjreh0L2A4NPKSmGxs5XfZXD9lWPb1+U6oQrZYG2h1ulyI7rt+adWOhfP2'
+ 'UYq6V5JSdNDi4r1nGxBccZgguiL7XNjl9TSsgr8QKmAacubyNEwIrmQIS9h'
+ 'ipKg3k10VcqfVmSzF1GuzDUKFfIHU/zyd6aJ0emAqgft/fho+BkrXBihhxf'
+ '/Qbi5fi4Ipx3VFcLrdiOBbOQ==')
+ )
+ expect(key.delete()).is_True()
def test_delete_key(self):
self.raisesGHE(self.g.delete_key, 10)
Please sign in to comment.
Something went wrong with that request. Please try again.