Check types of received attributes

This commit is contained in:
Vincent Jacques
2012-05-09 18:12:30 +02:00
parent ead8fdd165
commit c559faa680
24 changed files with 159 additions and 83 deletions
@@ -143,4 +143,5 @@ class PullRequestComment( object ):
if "url" in attributes and attributes[ "url" ] is not None:
self.__url = attributes[ "url" ]
if "user" in attributes and attributes[ "user" ] is not None:
assert isinstance( attributes[ "user" ], dict )
self.__user = NamedUser.NamedUser( self.__requester, attributes[ "user" ], lazy = True )