PageRenderTime 223ms CodeModel.GetById 131ms app.highlight 2ms RepoModel.GetById 89ms app.codeStats 0ms

/Lib/test/test_crypt.py

http://unladen-swallow.googlecode.com/
Python | 16 lines | 12 code | 4 blank | 0 comment | 2 complexity | 401acc4c4ab7de67faefca6521271858 MD5 | raw file
 1from test import test_support
 2import unittest
 3import crypt
 4
 5class 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
12def test_main():
13    test_support.run_unittest(CryptTestCase)
14
15if __name__ == "__main__":
16    test_main()