#NEWLINE# def test_get_service( self ) : #NEWLINE# #INDENT# service = self . services [ 0 ] #NEWLINE# url = reverse ( 'service-detail' , args = ( service . id , ) ) #NEWLINE# response = self . client . get ( url , format = 'json' ) #NEWLINE# self . assertEqual ( response . status_code , status . HTTP_200_OK ) #NEWLINE# self . assertEqual ( response . data [ 'name' ] , service . name ) #NEWLINE# self . assertEqual ( response . data [ 'environments' ] [ 0 ] [ 'id' ] , service . environments . all ( ) [ 0 ] . id )