#NEWLINE# def assertIsValidUser( self , user_data ) : #NEWLINE# #INDENT# self . assertIsNotNone ( self ) #NEWLINE# self . assertTrue ( int ( user_data [ 'id' ] ) ) #NEWLINE# self . assertIsNotNone ( user_data [ 'username' ] ) #NEWLINE# self . assertIsValidUrl ( user_data [ 'url' ] , 'api:users-detail' , user_data [ 'id' ] )