commit bd2eea778599d5a66a1ba997f05235f82fbebf4b Author: juga0 juga@riseup.net Date: Fri Feb 15 13:54:21 2019 +0000
new: tests: Add test to compare consensus timestamp
Part of #28566. --- tests/integration/lib/test_relaylist.py | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/tests/integration/lib/test_relaylist.py b/tests/integration/lib/test_relaylist.py index a1a5efb..b3d97c2 100644 --- a/tests/integration/lib/test_relaylist.py +++ b/tests/integration/lib/test_relaylist.py @@ -15,3 +15,8 @@ def test_relay_properties(persistent_launch_tor): assert relay.address == '127.10.0.1' assert relay.master_key_ed25519 == \ 'wLglSEw9/DHfpNrlrqjVRSnGLVWfnm0vYxkryH4aT6Q' + + +def test_relay_list_last_consensus_timestamp(rl): + assert rl.last_consensus_timestamp == \ + rl._relays[0].last_consensus_timestamp
tor-commits@lists.torproject.org