Skip to content

Commit

Permalink
increased code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
fametrano committed May 26, 2019
1 parent df53a4b commit 91bbe54
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_utils.py
Expand Up @@ -10,14 +10,14 @@

import unittest

from btclib.utils import h160
from btclib.utils import h160, double_sha256

class TestUtils(unittest.TestCase):

def test_h160(self):
def test_utils(self):
s = "0C28FCA386C7A227600B2FE50B7CAE11EC86D3BF1FBE471BE89827E19D72AA1D"
h160(s)

self.assertEqual(h160(s), h160(bytes.fromhex(s)))
self.assertEqual(double_sha256(s), double_sha256(bytes.fromhex(s)))


if __name__ == "__main__":
Expand Down

0 comments on commit 91bbe54

Please sign in to comment.