diff options
author | lovetox <philipp@hoerist.com> | 2020-04-13 17:02:46 +0300 |
---|---|---|
committer | lovetox <philipp@hoerist.com> | 2020-04-13 17:02:46 +0300 |
commit | cbfb6e15f4dd21a809961d4e534a58628decb5f5 (patch) | |
tree | e78521d9d0422d15a333dbc4c9357b0379817313 /test | |
parent | 9ae48ff3497e497404732489f78a392209e07a63 (diff) |
Tests: Add test for JID __eq__()
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/test_jid_parsing.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/unit/test_jid_parsing.py b/test/unit/test_jid_parsing.py index 56ecf88..ca10d9b 100644 --- a/test/unit/test_jid_parsing.py +++ b/test/unit/test_jid_parsing.py @@ -58,3 +58,13 @@ class JIDParsing(unittest.TestCase): for jid in tests: JID(jid) + + def test_jid_equality(self): + tests = [ + 'juliet@example.com', + 'juliet@example.com/foo', + 'example.com', + ] + + for jid in tests: + self.assertTrue(JID(jid) == jid) |