Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: ccc4ffe7a1e2ae151959446722bf1b58834f5e9f authored by Benjamin Peterson on 15 October 2014, 21:52:42 UTC
close 3.1
Tip revision: ccc4ffe
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