Brett Cannon | 2e0f9f3 | 2008-03-13 20:47:41 +0000 | [diff] [blame] | 1 | from test import test_support |
| 2 | import unittest |
Roger E. Masse | 7536238 | 1996-12-09 23:13:45 +0000 | [diff] [blame] | 3 | import crypt |
Roger E. Masse | fab8ab8 | 1996-12-20 22:36:52 +0000 | [diff] [blame] | 4 | |
Brett Cannon | 2e0f9f3 | 2008-03-13 20:47:41 +0000 | [diff] [blame] | 5 | class CryptTestCase(unittest.TestCase): |
| 6 | |
| 7 | def test_crypt(self): |
| 8 | c = crypt.crypt('mypassword', 'ab') |
| 9 | if test_support.verbose: |
| 10 | print 'Test encryption: ', c |
| 11 | |
| 12 | def test_main(): |
| 13 | test_support.run_unittest(CryptTestCase) |
| 14 | |
| 15 | if __name__ == "__main__": |
| 16 | test_main() |