Skip to content

Commit

Permalink
Merge cd24d21 into 91d3c14
Browse files Browse the repository at this point in the history
  • Loading branch information
keis committed Mar 2, 2020
2 parents 91d3c14 + cd24d21 commit 7be31f4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
4 changes: 1 addition & 3 deletions setup.cfg
Expand Up @@ -10,11 +10,9 @@ warn_unreachable = True
warn_unused_ignores = True
warn_redundant_casts = True
warn_unused_configs = True
check_untyped_defs = True
incremental = False

[mypy-hamcrest.*]
ignore_missing_imports = True

[mypy-setuptools.*]
ignore_missing_imports = True

2 changes: 1 addition & 1 deletion test-requirements.txt
@@ -1,5 +1,5 @@
pytest
pytest-flake8
pytest-cov
PyHamcrest
PyHamcrest>=2.0.2
coveralls
10 changes: 5 additions & 5 deletions test_base58.py
Expand Up @@ -61,7 +61,7 @@ def test_check_str():
out = b58encode_check(data)
assert_that(out, equal_to(b'3vQB7B6MrGQZaxCuFg4oh'))
back = b58decode_check(out)
assert_that(back, b'hello world')
assert_that(back, equal_to(b'hello world'))


def test_check_failure():
Expand All @@ -80,9 +80,9 @@ def test_round_trips():

def test_simple_integers():
for idx, char in enumerate(BITCOIN_ALPHABET):
char = bytes([char])
assert_that(b58decode_int(char), equal_to(idx))
assert_that(b58encode_int(idx), equal_to(char))
charbytes = bytes([char])
assert_that(b58decode_int(charbytes), equal_to(idx))
assert_that(b58encode_int(idx), equal_to(charbytes))


def test_large_integer():
Expand All @@ -92,4 +92,4 @@ def test_large_integer():


def test_alphabet_alias_exists_and_equals_bitcoin_alphabet():
assert_that(alphabet, BITCOIN_ALPHABET)
assert_that(alphabet, equal_to(BITCOIN_ALPHABET))

0 comments on commit 7be31f4

Please sign in to comment.