Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: fb0928d1176a1e517cc5e46aeafbf54ff5c2554c authored by Barry Warsaw on 09 March 2010, 22:31:52 UTC
Bumping to 2.6.5rc2
Tip revision: fb0928d
test_crypt.py
from test import test_support
import unittest
import 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