Skip to content

Commit c9be341

Browse files
committed
use same name for function to load test data
The test data loading function was previously sometimes plural and sometimes singular. This makes it always plural, because each file might have multiple different vectors of test data.
1 parent 4e8a3e0 commit c9be341

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)