test_crypt.py 384 B

1234567891011121314151617
  1. from test import test_support
  2. import unittest
  3. crypt = test_support.import_module('crypt')
  4. class CryptTestCase(unittest.TestCase):
  5. def test_crypt(self):
  6. c = crypt.crypt('mypassword', 'ab')
  7. if test_support.verbose:
  8. print 'Test encryption: ', c
  9. def test_main():
  10. test_support.run_unittest(CryptTestCase)
  11. if __name__ == "__main__":
  12. test_main()