Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: c1e689ec9677f3222790aaf7da5c8c7361e50115 authored by Barry Warsaw on 19 June 2008, 00:35:43 UTC
Bump to 3.0b1
Tip revision: c1e689e
test_crypt.py
from test import support
import unittest
import 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