#NEWLINE# def test_custom_policy( self ) : #NEWLINE# #INDENT# cmdline = ( ( ( cmdline . prefix + '--private-key file://' ) + self . private_key_file ) + ' --date-less-than 2016-1-1 --ip-address 12.34.56.78' ) #NEWLINE# expected_params = { #NEWLINE# #INDENT# 'Key-Pair-Id' : [ 'my_id' ] , #NEWLINE# 'Policy' : [ mock . ANY ] , #NEWLINE# 'Signature' : [ mock . ANY ] , #NEWLINE# #UNINDENT# } #NEWLINE# self . assertDesiredUrl ( self . run_cmd ( cmdline ) [ 0 ] , 'http://example.com/hi' , expected_params )