#NEWLINE# def testShouldCreateExpectedPublicURL( self ) : #NEWLINE# #INDENT# client = S3Client ( Credentials ( '0PN5J17HBGZHT7JJ3X82' , 'uV3F3YluFJax1cknvbcGwgjvx4QpvB+leU8dUj2o' ) ) #NEWLINE# actual = client . publicURL ( 'johnsmith' , 'cute/puppy.jpg' , datetime . datetime . fromtimestamp ( 1234 ) ) #NEWLINE# expected = ( ( ( 'https://johnsmith.s3.amazonaws.com/cute/puppy.jpg' + '?AWSAccessKeyId=0PN5J17HBGZHT7JJ3X82' ) + '&Expires=1234' ) + '&Signature=HWHkXHVSQazVDcxkZaCkVlGz7vg%3D' ) #NEWLINE# self . assertEqual ( expected , actual )