#NEWLINE# def test_parse_signed_request_incorrect_signature( ) : #NEWLINE# #INDENT# ( encoded_signature , _ ) = ( str ( string ) for string in TEST_SIGNED_REQUEST_UNKNOWN_ALGORITHM . split ( '.' , 2 ) ) #NEWLINE# ( _ , encoded_payload ) = ( str ( string ) for string in TEST_SIGNED_REQUEST . split ( '.' , 2 ) ) #NEWLINE# assert_raises ( SignedRequest . Error , SignedRequest . parse , signed_request = ( '%s.%s' % ( _ , encoded_payload ) ) , application_secret_key = TEST_FACEBOOK_APPLICATION_SECRET_KEY )