Ejemplo n.º 1
0
def test_name_status_unavailable():
    # claim a domain
    domain = random_domain()
    occupy_name = AEName(domain)
    occupy_name.full_claim_blocking(keypair)
    # wait for the state to propagate in the block chain
    EpochClient().wait_for_next_block()
    same_name = AEName(domain)
    assert not same_name.is_available()
Ejemplo n.º 2
0
from aeternity.aens import AEName
from aeternity.config import Config

Config.set_defaults(
    Config(external_host=3013, internal_host=3113, websocket_host=3114))

name = AEName('foobar.aet')
if name.is_available():
    name.preclaim()
    name.claim_blocking()
    name.update(target='ak$deadbeef')
Ejemplo n.º 3
0
def test_name_is_available():
    name = AEName(random_domain())
    assert name.is_available()