changeset 1 | 2fb8b9db1c86 |
0:ffa851df0825 | 1:2fb8b9db1c86 |
---|---|
1 from test import test_support |
|
2 import unittest |
|
3 import crypt |
|
4 |
|
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() |