Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: 06ddddf117ec8d1955265d246cce7932fac93729 authored by Georg Brandl on 03 July 2011, 07:42:43 UTC
NEWS rewrap.
Tip revision: 06ddddf
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