def test_pubkeyhash_from_script(self): self.assertEquals(ScriptPubkeyHash.from_script(self.script1), ScriptPubkeyHash(decodehexstr("342e5d1f2eb9c6e99fda90c85ca05aa36616644c")))
def test_pubkeyhash_match(self): assert ScriptPubkeyHash.match(self.script1)