mirror of
https://github.com/python/cpython.git
synced 2024-11-25 19:03:49 +08:00
5a53fdeee8
svn+ssh://pythondev@svn.python.org/python/trunk ........ r78678 | benjamin.peterson | 2010-03-04 21:07:59 -0600 (Thu, 04 Mar 2010) | 1 line set svn:eol-style ........ r78680 | benjamin.peterson | 2010-03-04 21:15:07 -0600 (Thu, 04 Mar 2010) | 1 line set svn:eol-style on Lib files ........ r78682 | benjamin.peterson | 2010-03-04 21:20:06 -0600 (Thu, 04 Mar 2010) | 1 line remove the svn:executable property from files that don't have shebang lines ........
18 lines
365 B
Python
18 lines
365 B
Python
from test import support
|
|
import unittest
|
|
|
|
crypt = support.import_module('crypt')
|
|
|
|
class CryptTestCase(unittest.TestCase):
|
|
|
|
def test_crypt(self):
|
|
c = crypt.crypt('mypassword', 'ab')
|
|
if support.verbose:
|
|
print('Test encryption: ', c)
|
|
|
|
def test_main():
|
|
support.run_unittest(CryptTestCase)
|
|
|
|
if __name__ == "__main__":
|
|
test_main()
|