Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: 96d237c40a97f2db2f347f657669ff08c96a005e authored by Georg Brandl on 13 August 2011, 09:59:12 UTC
Update versions in LICENSE files.
Tip revision: 96d237c
test_crypt.py
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()
back to top