#NEWLINE# def test_fields( self ) : #NEWLINE# #INDENT# instance = self . plugin . return_value #NEWLINE# instance . get_networks . return_value = [ ] #NEWLINE# self . api . get ( _get_path ( 'networks' ) , { #NEWLINE# #INDENT# 'fields' : 'foo' , #NEWLINE# #UNINDENT# } ) #NEWLINE# fields = self . _do_field_list ( 'networks' , [ 'foo' ] ) #NEWLINE# kwargs = self . _get_collection_kwargs ( fields = fields ) #NEWLINE# instance . get_networks . assert_called_once_with ( mock . ANY , ** kwargs )