mirror of
https://github.com/simplex-chat/simplexmq.git
synced 2026-09-11 17:57:44 +00:00
tiny test addition
This commit is contained in:
@@ -112,6 +112,8 @@ class EncodedLabelhashTests(unittest.TestCase):
|
||||
self.assertFalse(snrc.is_encoded_labelhash("[" + "z" * 64 + "]"))
|
||||
# uppercase hex is not it either: the handler lowercases the whole name
|
||||
self.assertFalse(snrc.is_encoded_labelhash("[" + "A" * 64 + "]"))
|
||||
# explicitly disallowed prefix
|
||||
self.assertFalse(snrc.is_encoded_labelhash("[0x9c0257114eb9399a2985f8e75dad7600c5d89fe3824ffa99ec1c3eb8bf3b0501]"))
|
||||
|
||||
def test_the_wrong_length_is_not(self):
|
||||
self.assertFalse(snrc.is_encoded_labelhash("[" + "a" * 63 + "]"))
|
||||
|
||||
Reference in New Issue
Block a user