cpython/Lib/test/test_crypt.py
Marc-André Lemburg 3661908a6a This patch removes all uses of "assert" in the regression test suite
and replaces them with a new API verify(). As a result the regression
suite will also perform its tests in optimization mode.

Written by Marc-Andre Lemburg. Copyright assigned to Guido van Rossum.
2001-01-17 19:11:13 +00:00

11 lines
226 B
Python
Executable file

#! /usr/bin/env python
"""Simple test script for cryptmodule.c
Roger E. Masse
"""
from test_support import verify, verbose
import crypt
c = crypt.crypt('mypassword', 'ab')
if verbose:
print 'Test encryption: ', c