Move to pyelliptic.tests also test_blindsig and test_openssl
This commit is contained in:
parent
6360c2773d
commit
01b0fee4b4
|
@ -5,6 +5,9 @@ import os
|
|||
import unittest
|
||||
from hashlib import sha256
|
||||
|
||||
try:
|
||||
from pyelliptic import ECCBlind, ECCBlindChain, OpenSSL
|
||||
except ImportError:
|
||||
from pybitmessage.pyelliptic import ECCBlind, ECCBlindChain, OpenSSL
|
||||
|
||||
# pylint: disable=protected-access
|
|
@ -3,7 +3,10 @@ Test if OpenSSL is working correctly
|
|||
"""
|
||||
import unittest
|
||||
|
||||
from pybitmessage.pyelliptic.openssl import OpenSSL
|
||||
try:
|
||||
from pyelliptic.openssl import OpenSSL
|
||||
except ImportError:
|
||||
from pybitmessage.pyelliptic import OpenSSL
|
||||
|
||||
try:
|
||||
OpenSSL.BN_bn2binpad
|
||||
|
@ -33,7 +36,7 @@ class TestOpenSSL(unittest.TestCase):
|
|||
|
||||
@unittest.skipUnless(have_pad, 'Skipping OpenSSL pad test')
|
||||
def test_padding(self):
|
||||
"""Test an alternatie implementation of bn2binpad"""
|
||||
"""Test an alternative implementation of bn2binpad"""
|
||||
|
||||
ctx = OpenSSL.BN_CTX_new()
|
||||
a = OpenSSL.BN_new()
|
Reference in New Issue
Block a user