#NEWLINE# def test_get_with_nested_source_fields( self ) : #NEWLINE# #INDENT# u1 = User . objects . create ( name = 'test1' , last_name = 'user' ) #NEWLINE# Profile . objects . create ( user = u1 , display_name = 'foo' , thumbnail_url = 'http://thumbnail.url' ) #NEWLINE# url = ( '/users/?filter{id}=%s&include[]=display_name&include[]=thumbnail_url' % u1 . pk ) #NEWLINE# response = self . client . get ( url ) #NEWLINE# content = json . loads ( response . content . decode ( 'utf-8' ) ) #NEWLINE# self . assertEqual ( 200 , response . status_code ) #NEWLINE# self . assertIsNotNone ( content [ 'users' ] [ 0 ] [ 'display_name' ] ) #NEWLINE# self . assertIsNotNone ( content [ 'users' ] [ 0 ] [ 'thumbnail_url' ] )