Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: 377510d2d9e6cb111383e124f753c73b571e577b authored by Benjamin Peterson on 11 June 2011, 14:50:21 UTC
update pydoc-topics
Tip revision: 377510d
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