#NEWLINE# def test_list_cluster( self ) : #NEWLINE# #INDENT# url = reverse ( 'cluster-list' ) #NEWLINE# response = self . client . get ( url , format = 'json' ) #NEWLINE# self . assertEqual ( response . status_code , status . HTTP_200_OK ) #NEWLINE# self . assertEqual ( len ( response . data [ 'results' ] ) , 2 ) #NEWLINE# for item in response . data [ 'results' ] : #NEWLINE# #INDENT# if ( item [ 'id' ] == self . cluster_1 . id ) : #NEWLINE# #INDENT# self . assertEqual ( len ( item [ 'base_objects' ] ) , 2 )