#NEWLINE# def test_save_predefined_valid_w_alternate_query_param( self ) : #NEWLINE# #INDENT# PREDEFINED = 'publicRead' #NEWLINE# connection = _Connection ( { #NEWLINE# #INDENT# 'acl' : [ ] , #NEWLINE# #UNINDENT# } ) #NEWLINE# client = _Client ( connection ) #NEWLINE# acl = self . _makeOne ( ) #NEWLINE# acl . save_path = '/testing' #NEWLINE# acl . loaded = True #NEWLINE# acl . _PREDEFINED_QUERY_PARAM = 'alternate' #NEWLINE# acl . save_predefined ( PREDEFINED , client = client ) #NEWLINE# entries = list ( acl ) #NEWLINE# self . assertEqual ( len ( entries ) , 0 ) #NEWLINE# kw = connection . _requested #NEWLINE# self . assertEqual ( len ( kw ) , 1 ) #NEWLINE# self . assertEqual ( kw [ 0 ] [ 'method' ] , 'PATCH' ) #NEWLINE# self . assertEqual ( kw [ 0 ] [ 'path' ] , '/testing' ) #NEWLINE# self . assertEqual ( kw [ 0 ] [ 'data' ] , { #NEWLINE# #INDENT# 'acl' : [ ] , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertEqual ( kw [ 0 ] [ 'query_params' ] , { #NEWLINE# #INDENT# 'projection' : 'full' , #NEWLINE# 'alternate' : PREDEFINED , #NEWLINE# #UNINDENT# } )