#NEWLINE# def test_get_licence_with_base_object_details( self ) : #NEWLINE# #INDENT# url = reverse ( 'licence-detail' , args = ( self . licence2 . id , ) ) #NEWLINE# response = self . client . get ( url , format = 'json' ) #NEWLINE# self . assertEqual ( response . status_code , status . HTTP_200_OK ) #NEWLINE# self . assertTrue ( response . data [ 'base_objects' ] [ 0 ] [ 'base_object' ] . endswith ( reverse ( 'baseobject-detail' , args = ( response . base_object . id , ) ) ) )