Пример #1
0
def test_AssetTypeSpec_eq():
    assert abi.AssetTypeSpec() == abi.AssetTypeSpec()

    for otherType in (
            abi.ByteTypeSpec(),
            abi.Uint8TypeSpec(),
            abi.AddressTypeSpec(),
    ):
        assert abi.AssetTypeSpec() != otherType
Пример #2
0
def test_ReferenceTypeSpecs_list():
    assert abi.ReferenceTypeSpecs == [
        abi.AccountTypeSpec(),
        abi.AssetTypeSpec(),
        abi.ApplicationTypeSpec(),
    ]
Пример #3
0
def test_Asset_typespec():
    assert abi.Asset().type_spec() == abi.AssetTypeSpec()
Пример #4
0
def test_AssetTypeSpec_new_instance():
    assert isinstance(abi.AssetTypeSpec().new_instance(), abi.Asset)
Пример #5
0
def test_AssetTypeSpec_is_dynamic():
    assert not (abi.AssetTypeSpec()).is_dynamic()
Пример #6
0
def test_Asset_str():
    assert str(abi.AssetTypeSpec()) == "asset"