/Lib/test/test_crypt.py

http://unladen-swallow.googlecode.com/ · Python · 16 lines · 12 code · 4 blank · 0 comment · 2 complexity · 401acc4c4ab7de67faefca6521271858 MD5 · raw file

  1. from test import test_support
  2. import unittest
  3. import 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()