2008-03-13 17:47:41 -03:00
|
|
|
from test import test_support
|
|
|
|
import unittest
|
2009-03-30 16:04:00 -03:00
|
|
|
|
|
|
|
crypt = test_support.import_module('crypt')
|
1996-12-20 18:36:52 -04:00
|
|
|
|
2008-03-13 17:47:41 -03:00
|
|
|
class CryptTestCase(unittest.TestCase):
|
|
|
|
|
|
|
|
def test_crypt(self):
|
|
|
|
c = crypt.crypt('mypassword', 'ab')
|
|
|
|
if test_support.verbose:
|
|
|
|
print 'Test encryption: ', c
|
|
|
|
|
|
|
|
def test_main():
|
|
|
|
test_support.run_unittest(CryptTestCase)
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
test_main()
|