9
9
def test_name_validation_fails (chain_fixture ):
10
10
with raises (ValueError ):
11
11
chain_fixture .NODE_CLI .AEName ('test.lol' )
12
- chain_fixture .NODE_CLI .AEName ('test.aet ' )
12
+ chain_fixture .NODE_CLI .AEName ('test.chain ' )
13
13
chain_fixture .NODE_CLI .AEName ('test.test' )
14
14
15
15
16
16
def test_name_validation_succeeds (chain_fixture ):
17
17
chain_fixture .NODE_CLI .AEName ('test.test' )
18
- chain_fixture .NODE_CLI .AEName ('test.aet ' )
18
+ chain_fixture .NODE_CLI .AEName ('test.chain ' )
19
19
20
20
21
21
def test_name_is_available (chain_fixture ):
22
- domain = random_domain (tld = 'aet ' if chain_fixture .NODE_CLI .get_consensus_protocol_version () >= PROTOCOL_LIMA else 'test' )
22
+ domain = random_domain (tld = 'chain ' if chain_fixture .NODE_CLI .get_consensus_protocol_version () >= PROTOCOL_LIMA else 'test' )
23
23
name = chain_fixture .NODE_CLI .AEName (domain )
24
24
assert name .is_available ()
25
25
26
26
27
27
def test_name_status_available (chain_fixture ):
28
- domain = random_domain (length = 13 ,tld = 'aet ' if chain_fixture .NODE_CLI .get_consensus_protocol_version () >= PROTOCOL_LIMA else 'test' )
28
+ domain = random_domain (length = 13 ,tld = 'chain ' if chain_fixture .NODE_CLI .get_consensus_protocol_version () >= PROTOCOL_LIMA else 'test' )
29
29
name = chain_fixture .NODE_CLI .AEName (domain )
30
30
assert name .status == AEName .Status .UNKNOWN
31
31
name .update_status ()
@@ -35,7 +35,7 @@ def test_name_status_available(chain_fixture):
35
35
def test_name_claim_lifecycle (chain_fixture ):
36
36
try :
37
37
# avoid auctions
38
- domain = random_domain (length = 13 ,tld = 'aet ' if chain_fixture .NODE_CLI .get_consensus_protocol_version () >= PROTOCOL_LIMA else 'test' )
38
+ domain = random_domain (length = 13 ,tld = 'chain ' if chain_fixture .NODE_CLI .get_consensus_protocol_version () >= PROTOCOL_LIMA else 'test' )
39
39
node_cli = chain_fixture .NODE_CLI
40
40
name = node_cli .AEName (domain )
41
41
assert name .status == AEName .Status .UNKNOWN
@@ -86,7 +86,7 @@ def test_name_auction(chain_fixture):
86
86
87
87
def test_name_status_unavailable (chain_fixture ):
88
88
# avoid auctions
89
- domain = random_domain (length = 13 ,tld = 'aet ' if chain_fixture .NODE_CLI .get_consensus_protocol_version () >= PROTOCOL_LIMA else 'test' )
89
+ domain = random_domain (length = 13 ,tld = 'chain ' if chain_fixture .NODE_CLI .get_consensus_protocol_version () >= PROTOCOL_LIMA else 'test' )
90
90
print (f"domain is { domain } " )
91
91
occupy_name = chain_fixture .NODE_CLI .AEName (domain )
92
92
occupy_name .full_claim_blocking (chain_fixture .ALICE )
@@ -97,7 +97,7 @@ def test_name_status_unavailable(chain_fixture):
97
97
98
98
def test_name_update (chain_fixture ):
99
99
# avoid auctions
100
- domain = random_domain (length = 13 ,tld = 'aet ' if chain_fixture .NODE_CLI .get_consensus_protocol_version () >= PROTOCOL_LIMA else 'test' )
100
+ domain = random_domain (length = 13 ,tld = 'chain ' if chain_fixture .NODE_CLI .get_consensus_protocol_version () >= PROTOCOL_LIMA else 'test' )
101
101
print (f"domain is { domain } " )
102
102
name = chain_fixture .NODE_CLI .AEName (domain )
103
103
print ("Claim name " , domain )
@@ -122,7 +122,7 @@ def test_name_update(chain_fixture):
122
122
123
123
def test_spend_by_name (chain_fixture ):
124
124
# claim a domain
125
- domain = random_domain (tld = 'aet ' if chain_fixture .NODE_CLI .get_consensus_protocol_version () >= PROTOCOL_LIMA else 'test' )
125
+ domain = random_domain (tld = 'chain ' if chain_fixture .NODE_CLI .get_consensus_protocol_version () >= PROTOCOL_LIMA else 'test' )
126
126
print (f"domain is { domain } " )
127
127
name = chain_fixture .NODE_CLI .AEName (domain )
128
128
print ("Claim name " , domain )
@@ -146,7 +146,7 @@ def test_spend_by_name(chain_fixture):
146
146
147
147
def test_name_transfer_ownership (chain_fixture ):
148
148
# avoid auctions
149
- domain = random_domain (length = 13 ,tld = 'aet ' if chain_fixture .NODE_CLI .get_consensus_protocol_version () >= PROTOCOL_LIMA else 'test' )
149
+ domain = random_domain (length = 13 ,tld = 'chain ' if chain_fixture .NODE_CLI .get_consensus_protocol_version () >= PROTOCOL_LIMA else 'test' )
150
150
name = chain_fixture .NODE_CLI .AEName (domain )
151
151
name .full_claim_blocking (chain_fixture .ALICE )
152
152
assert name .status == AEName .Status .CLAIMED
@@ -167,7 +167,7 @@ def test_name_transfer_ownership(chain_fixture):
167
167
168
168
def test_name_revocation (chain_fixture ):
169
169
# avoid auctions
170
- domain = random_domain (length = 13 ,tld = 'aet ' if chain_fixture .NODE_CLI .get_consensus_protocol_version () >= PROTOCOL_LIMA else 'test' )
170
+ domain = random_domain (length = 13 ,tld = 'chain ' if chain_fixture .NODE_CLI .get_consensus_protocol_version () >= PROTOCOL_LIMA else 'test' )
171
171
name = chain_fixture .NODE_CLI .AEName (domain )
172
172
name .full_claim_blocking (chain_fixture .ALICE )
173
173
name .revoke (chain_fixture .ALICE )
0 commit comments