def test_sign(self): sign = PdfSign(bin, key) path = get_test_files_dir() + "advance-body.pdf" sign.sign(path) expexted = get_test_files_dir() + "advance-body_signed.pdf" self.assertTrue(os.path.exists(expexted)) self.assertTrue(False)
def sign(self): sign = PdfSign(self.args.sign_bin, self.args.sign_key) sign.sign(self.args.inputs)