#NEWLINE# def test_properly_signs_when_no_previous_signature( self ) : #NEWLINE# #INDENT# validator = Sha256RSADigestValidator ( ) #NEWLINE# digest_data = { #NEWLINE# #INDENT# 'digestEndTime' : 'a' , #NEWLINE# 'digestS3Bucket' : 'b' , #NEWLINE# 'digestS3Object' : 'c' , #NEWLINE# 'previousDigestSignature' : None , #NEWLINE# #UNINDENT# } #NEWLINE# signed = validator . _create_string_to_sign ( digest_data , 'abc' . encode ( ) ) #NEWLINE# self . assertEqual ( 'a\nb/c\nba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad\nnull' . encode ( ) , signed )