Skip to content

Commit fd2a2ba

Browse files
committed
Added BaseData dict key failure test.
1 parent 62472a3 commit fd2a2ba

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/test_unit.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,11 @@ def test_getitem(self):
8686
eq_(user['login'], user.login)
8787
eq_(user['name'], user.name)
8888

89+
@raises(KeyError)
90+
def test_getitem_failure(self):
91+
user = self.client.users.show('defunkt')
92+
ok_(user['invalid_key'])
93+
8994

9095
def test_project_for_user_repo():
9196
client = Github()

0 commit comments

Comments
 (0)