#NEWLINE# def test_get_asset_model_list( self ) : #NEWLINE# #INDENT# url = reverse ( 'assetmodel-list' ) #NEWLINE# response = self . client . get ( url , format = 'json' ) #NEWLINE# self . assertEqual ( response . status_code , status . HTTP_200_OK ) #NEWLINE# self . assertEqual ( response . data [ 'count' ] , 1 ) #NEWLINE# self . assertEqual ( response . data [ 'results' ] [ 0 ] [ 'name' ] , self . asset_model . name )