mirror of https://github.com/nucypher/nucypher.git
Some syntactic cleanup suggested by @michwill in comments on #1868.
parent
c223622e2f
commit
8d18272d77
|
@ -61,8 +61,8 @@ class BaseTestNodeStorageBackends:
|
|||
all_known_nodes.add(ursula)
|
||||
assert len(all_known_nodes) == len(all_stored_nodes)
|
||||
|
||||
known_checksums = sorted([n.checksum_address for n in all_known_nodes])
|
||||
stored_checksums = sorted([n.checksum_address for n in all_stored_nodes])
|
||||
known_checksums = sorted(n.checksum_address for n in all_known_nodes)
|
||||
stored_checksums = sorted(n.checksum_address for n in all_stored_nodes)
|
||||
|
||||
assert known_checksums == stored_checksums
|
||||
|
||||
|
|
|
@ -49,7 +49,7 @@ def test_learner_learns_about_domains_separately(lonely_ursula_maker, caplog):
|
|||
new_first_domain_learner.learn_from_teacher_node()
|
||||
|
||||
# This node, in the first domain, didn't learn about the second domain.
|
||||
assert not set(second_domain_learners).intersection(set(new_first_domain_learner.known_nodes))
|
||||
assert not set(second_domain_learners).intersection(new_first_domain_learner.known_nodes)
|
||||
|
||||
# However, it learned about *all* of the nodes in its own domain.
|
||||
assert set(first_domain_learners).intersection(set(n.mature() for n in new_first_domain_learner.known_nodes)) == first_domain_learners
|
||||
assert set(first_domain_learners).intersection(n.mature() for n in new_first_domain_learner.known_nodes) == first_domain_learners
|
||||
|
|
Loading…
Reference in New Issue