Skip to content

Commit 54593f2

Browse files
committed
Merge pull request #23
c9be341 use same name for function to load test data (Bryan Bishop)
2 parents 4e8a3e0 + c9be341 commit 54593f2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

bitcoin/tests/test_base58.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@
2020
from bitcoin.base58 import *
2121

2222

23-
def load_test_vector(name):
23+
def load_test_vectors(name):
2424
with open(os.path.dirname(__file__) + '/data/' + name, 'r') as fd:
2525
for testcase in json.load(fd):
2626
yield testcase
2727

2828
class Test_base58(unittest.TestCase):
2929
def test_encode_decode(self):
30-
for exp_bin, exp_base58 in load_test_vector('base58_encode_decode.json'):
30+
for exp_bin, exp_base58 in load_test_vectors('base58_encode_decode.json'):
3131
exp_bin = unhexlify(exp_bin.encode('utf8'))
3232

3333
act_base58 = encode(exp_bin)

0 commit comments

Comments
 (0)