]>
Commit | Line | Data |
---|---|---|
4710c53d | 1 | from test import test_support\r |
2 | import unittest\r | |
3 | \r | |
4 | crypt = test_support.import_module('crypt')\r | |
5 | \r | |
6 | class CryptTestCase(unittest.TestCase):\r | |
7 | \r | |
8 | def test_crypt(self):\r | |
9 | c = crypt.crypt('mypassword', 'ab')\r | |
10 | if test_support.verbose:\r | |
11 | print 'Test encryption: ', c\r | |
12 | \r | |
13 | def test_main():\r | |
14 | test_support.run_unittest(CryptTestCase)\r | |
15 | \r | |
16 | if __name__ == "__main__":\r | |
17 | test_main()\r |