cpython/Lib/test/test_crypt.py
Benjamin Peterson 5a53fdeee8 Merged revisions 78678,78680,78682 via svnmerge from
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
........
2010-03-05 03:33:11 +00:00

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()