CVS: crypto/test test_publickey.py,1.5,1.6
"A.M. Kuchling" <[email protected]> Thu, 03 Apr 2003 12:36:19 -0800
| Newsgroups | gmane.comp.python.cryptography.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/pycrypto/crypto/test
In directory sc8-pr-cvs1:/tmp/cvs-serv31665/test
Modified Files:
test_publickey.py
Log Message:
Rename can* and has* to can_* and has_*
Index: test_publickey.py
===================================================================
RCS file: /cvsroot/pycrypto/crypto/test/test_publickey.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- test_publickey.py 3 Apr 2003 20:30:01 -0000 1.5
+++ test_publickey.py 3 Apr 2003 20:36:15 -0000 1.6
@@ -27,13 +27,13 @@
def testkey (self, key, randfunc, verbose=0):
plaintext="Hello"
- if key.canencrypt():
+ if key.can_encrypt():
if verbose: print ' Encryption/decryption test'
K=number.getPrime(10, randfunc)
ciphertext=key.encrypt(plaintext, K)
self.test_val('key.decrypt(ciphertext)', plaintext)
- if key.cansign():
+ if key.can_sign():
if verbose: print ' Signature test'
K=number.getPrime(30, randfunc)
signature=key.sign(plaintext, K)
-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb:
Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/