Staging
v0.8.1
https://github.com/python/cpython
Revision ee933eccc98a62d1b9a4087a7fdea9a97e46fa10 authored by Benjamin Peterson on 15 March 2012, 17:25:54 UTC, committed by Benjamin Peterson on 15 March 2012, 17:25:54 UTC
1 parent 66d2bd7
Raw File
Tip revision: ee933eccc98a62d1b9a4087a7fdea9a97e46fa10 authored by Benjamin Peterson on 15 March 2012, 17:25:54 UTC
bump to 2.7.3rc2
Tip revision: ee933ec
test_crypt.py
from test import test_support
import unittest

crypt = test_support.import_module('crypt')

class CryptTestCase(unittest.TestCase):

    def test_crypt(self):
        c = crypt.crypt('mypassword', 'ab')
        if test_support.verbose:
            print 'Test encryption: ', c

def test_main():
    test_support.run_unittest(CryptTestCase)

if __name__ == "__main__":
    test_main()
back to top