Brett Cannon | 2e0f9f3 | 2008-03-13 20:47:41 +0000 | [diff] [blame] | 1 | from test import test_support |
| 2 | import unittest |
R. David Murray | 59beec3 | 2009-03-30 19:04:00 +0000 | [diff] [blame] | 3 | |
| 4 | crypt = test_support.import_module('crypt') |
Roger E. Masse | fab8ab8 | 1996-12-20 22:36:52 +0000 | [diff] [blame] | 5 | |
Brett Cannon | 2e0f9f3 | 2008-03-13 20:47:41 +0000 | [diff] [blame] | 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() |