Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: c251607d591ad8c0f117eb5e6118027c4ae1e8c6 authored by Benjamin Peterson on 08 May 2010, 17:08:17 UTC
bump version to 2.7 beta 2
Tip revision: c251607
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