Home | History | Annotate | Download | only in test
      1 from test import test_support
      2 import unittest
      3 
      4 crypt = test_support.import_module('crypt')
      5 
      6 class CryptTestCase(unittest.TestCase):
      7 
      8     def test_crypt(self):
      9         c = crypt.crypt('mypassword', 'ab')
     10         if test_support.verbose:
     11             print 'Test encryption: ', c
     12 
     13 def test_main():
     14     test_support.run_unittest(CryptTestCase)
     15 
     16 if __name__ == "__main__":
     17     test_main()
     18