import unittest
from pyDcCrypto.crypto import PyDcCrypto


class TestCrypto(unittest.TestCase):

    def test_decrypt(self):
        crypto = PyDcCrypto("Bar")
        crypted = "raSRtH1uOS<KEY>
        expected = "Long input with more than 16 characters"
        result = crypto.decrypt(crypted)
        self.assertEqual(expected, result)

    def test_encrypt(self):
        crypto = PyDcCrypto("Bar")
        msg = "Long input with more than 16 characters"
        result = crypto.encrypt(msg)
        print crypto.decrypt(result)
        self.assertEqual(msg,  crypto.decrypt(result))


if __name__ == '__main__':
    unittest.main()

import unittest
from pyDcCrypto.crypto import PyDcCrypto


class TestCrypto(unittest.TestCase):

    def test_decrypt(self):
        crypto = PyDcCrypto("Bar")
        crypted = "raSRtH1uOS<KEY>
        expected = "Long input with more than 16 characters"
        result = crypto.decrypt(crypted)
        self.assertEqual(expected, result)

    def test_encrypt(self):
        crypto = PyDcCrypto("Bar")
        msg = "Long input with more than 16 characters"
        result = crypto.encrypt(msg)
        print crypto.decrypt(result)
        self.assertEqual(msg,  crypto.decrypt(result))


if __name__ == '__main__':
    unittest.main()
