File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,16 @@ def test_remove_protocols():
51
51
assert peer_data .get_protocols () == ["protocol2" ]
52
52
53
53
54
+ # Test case when clearing the protocol list:
55
+ def test_clear_protocol_data ():
56
+ peer_data = PeerData ()
57
+ protocols : Sequence [str ] = ["protocol1" , "protocol2" ]
58
+ peer_data .set_protocols (protocols )
59
+
60
+ peer_data .clear_protocol_data ()
61
+ assert peer_data .get_protocols () == []
62
+
63
+
54
64
# Test case when supports protocols:
55
65
def test_supports_protocols ():
56
66
peer_data = PeerData ()
@@ -84,16 +94,6 @@ def test_first_supported_protocol_none():
84
94
assert first == "None supported"
85
95
86
96
87
- # Test case for clearing protocol data
88
- def test_clear_protocol_data ():
89
- peer_data = PeerData ()
90
- peer_data .set_protocols (["proto1" , "proto2" ])
91
-
92
- peer_data .clear_protocol_data ()
93
-
94
- assert peer_data .get_protocols () == []
95
-
96
-
97
97
# Test case when adding addresses
98
98
def test_add_addrs ():
99
99
peer_data = PeerData ()
You can’t perform that action at this time.
0 commit comments