def test_has_encoder_raises(registry: ABIRegistry): registry.register( BaseEquals('address', with_sub=False), encoding.AddressEncoder, decoding.AddressDecoder, label='other_address', ) with pytest.raises(exceptions.MultipleEntriesFound): assert registry.has_encoder('address')
def test_has_encoder_returns_false(registry: ABIRegistry): assert not registry.has_encoder('foo')
def test_has_encoder_returns_true(registry: ABIRegistry): assert registry.has_encoder('address')