#NEWLINE# def testUserPublicOrganizationList( self ) : #NEWLINE# #INDENT# 'Get a list of organizations a user is publicly member of.' #NEWLINE# os = self . _gh ( 'https://github.com/api/v2/xml/user/show/claudiob/organizations' , 'data/orgs.for_user.public.xml' ) . organizations . forUser ( 'claudiob' ) #NEWLINE# self . assertEquals ( 2 , len ( os ) ) #NEWLINE# o = os [ 0 ] #NEWLINE# self . assertEquals ( 'ff0000' , o . login ) #NEWLINE# self . assertEquals ( 'RED Interactive Agency' , o . name ) #NEWLINE# self . assertEquals ( '514663408e310690ce46f6e8efdf5e2d' , o . gravatar_id ) #NEWLINE# self . assertEquals ( 'Santa Monica, CA' , os . location ) #NEWLINE# self . assertEquals ( 'http://ff0000.github.com/' , o . blog ) #NEWLINE# self . assertEquals ( 'Organization' , o . type )