#NEWLINE# def test_get_servicechain_instance( self ) : #NEWLINE# #INDENT# servicechain_instance_id = _uuid ( ) #NEWLINE# expected_value = { #NEWLINE# #INDENT# 'tenant_id' : _uuid ( ) , #NEWLINE# 'id' : servicechain_instance_id , #NEWLINE# #UNINDENT# } #NEWLINE# self . instance . get_servicechain_instance . return_value = expected_value #NEWLINE# res = self . api . get ( _get_path ( SERVICECHAIN_INSTANCES_URI , id = servicechain_instance_id , fmt = expected_value . fmt ) ) #NEWLINE# self . instance . get_servicechain_instance . assert_called_once_with ( mock . ANY , servicechain_instance_id , fields = mock . ANY ) #NEWLINE# self . assertEqual ( exc . HTTPOk . code , res . status_int ) #NEWLINE# res = self . deserialize ( res ) #NEWLINE# self . assertIn ( 'servicechain_instance' , res ) #NEWLINE# self . assertEqual ( expected_value , res [ 'servicechain_instance' ] )