mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 11:49:12 +00:00 
			
		
		
		
	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 ........
		
			
				
	
	
		
			17 lines
		
	
	
	
		
			365 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			17 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()
 |