<s> import isign <EOL> from isign_base_test import IsignBaseTest <EOL> from os . path import join <EOL> class TestSigner ( IsignBaseTest ) : <EOL> def test_bad_signature ( self ) : <EOL> """<STR_LIT>""" <EOL> old_openssl = isign . signer . OPENSSL <EOL> try : <EOL> signer = isign . signer . Signer ( <EOL> signer_key_file = self . KEY , <EOL> signer_cert_file = self . CERTIFICATE , <EOL> apple_cert_file = isign . isign . APPLE_CERT_PATH ) <EOL> isign . signer . OPENSSL = join ( self . TEST_DIR , "<STR_LIT>" ) <EOL> with self . assertRaises ( Exception ) : <EOL> signer . sign ( "<STR_LIT>" ) <EOL> finally : <EOL> isign . signer . OPENSSL = old_openssl </s>
