# Path: pysmime/mail.py
# def mail_encrypt(mail, recipient_cert, keyring_source='file',
#                  cypher='des_ede3_cbc'):
# def mail_decrypt(encrypted_mail, recipient_private_key, recipient_cert,
#                  keyring_source='file', type='PEM'):
# def mail_sign(mail, sender_private_key, sender_cert, keyring_source='file',
#               type='PEM', algo='sha256'):
# def mail_verify(signed_mail, certstore_path, AUTO_SIGNED_CERT=False,
#                 type='PEM'):
# 
# Path: pysmime/file.py
# def file_encrypt(input_file_path, recipient_cert, output_file_path=None,
#                  keyring_source='file', cypher='des_ede3_cbc'):
# def file_decrypt(input_file_path, recipient_private_key, recipient_cert,
#                  output_file_path=None, keyring_source='file', type='DER'):
# def file_sign(input_file_path, sender_private_key, sender_cert,
#               output_file_path=None, keyring_source='file', type='DER',
#               algo='sha512'):
# def file_verify(input_file_path, certstore_path, AUTO_SIGNED_CERT=False,
#                 type='DER'):


import unittest
import os
import M2Crypto
import pytest
from pysmime import mail, file
# -*- coding: utf-8 -*-
#
# tests/test_pysmime.py
# Lorenzo Gaggini <lg@libersoft.it>
# Libersoft <tech@libersoft.it>
# http://www.libersoft.it
# License: http://www.gnu.org/licenses/gpl.txt

"""
Basic test class to test basic function of the package. At the moment there
are no PKCS11 test cases.
"""




class PySmimeTest(unittest.TestCase):

    def setUp(self):
        self.certspath = os.path.join(os.path.dirname(__file__), "certs")

# Path: pysmime/mail.py
# def mail_encrypt(mail, recipient_cert, keyring_source='file',
#                  cypher='des_ede3_cbc'):
# def mail_decrypt(encrypted_mail, recipient_private_key, recipient_cert,
#                  keyring_source='file', type='PEM'):
# def mail_sign(mail, sender_private_key, sender_cert, keyring_source='file',
#               type='PEM', algo='sha256'):
# def mail_verify(signed_mail, certstore_path, AUTO_SIGNED_CERT=False,
#                 type='PEM'):
# 
# Path: pysmime/file.py
# def file_encrypt(input_file_path, recipient_cert, output_file_path=None,
#                  keyring_source='file', cypher='des_ede3_cbc'):
# def file_decrypt(input_file_path, recipient_private_key, recipient_cert,
#                  output_file_path=None, keyring_source='file', type='DER'):
# def file_sign(input_file_path, sender_private_key, sender_cert,
#               output_file_path=None, keyring_source='file', type='DER',
#               algo='sha512'):
# def file_verify(input_file_path, certstore_path, AUTO_SIGNED_CERT=False,
#                 type='DER'):


# Path: tests/test_pysmime.py
import unittest
import os
import M2Crypto
import pytest
from pysmime import mail, file

# -*- coding: utf-8 -*-
#
# tests/test_pysmime.py
# Lorenzo Gaggini <lg@libersoft.it>
# Libersoft <tech@libersoft.it>
# http://www.libersoft.it
# License: http://www.gnu.org/licenses/gpl.txt

"""
Basic test class to test basic function of the package. At the moment there
are no PKCS11 test cases.
"""




class PySmimeTest(unittest.TestCase):

    def setUp(self):
        self.certspath = os.path.join(os.path.dirname(__file__), "certs")

        self.mail = ("This is a mail messagge text. "