Skip to content

Commit

Permalink
fix unittest
Browse files Browse the repository at this point in the history
  • Loading branch information
xeroc committed Feb 20, 2018
1 parent 3fc7057 commit 8add73e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
12 changes: 6 additions & 6 deletions graphenebase/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# from . import account as Account
# from .account import PrivateKey, PublicKey, Address, BrainKey
# from . import base58 as Base58
# from . import bip38 as Bip38
# from . import transactions as Transactions
# from . import dictionary as BrainKeyDictionary
from . import account as Account
from .account import PrivateKey, PublicKey, Address, BrainKey
from . import base58 as Base58
from . import bip38 as Bip38
from . import transactions as Transactions
from . import dictionary as BrainKeyDictionary

__all__ = ['account',
'base58',
Expand Down
4 changes: 4 additions & 0 deletions tests/test_ecdsa.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import pytest
import unittest
from graphenebase.ecdsasig import (
sign_message,
Expand All @@ -10,6 +11,9 @@

class Testcases(unittest.TestCase):

# Ignore warning:
# https://www.reddit.com/r/joinmarket/comments/5crhfh/userwarning_implicit_cast_from_char_to_a/
@pytest.mark.filterwarnings()
def test_sign_message(self):
signature = sign_message("Foobar", wif)
self.assertTrue(verify_message("Foobar", signature))
Expand Down

0 comments on commit 8add73e

Please sign in to comment.