Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/python-nbxmpp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorlovetox <philipp@hoerist.com>2020-04-13 17:02:46 +0300
committerlovetox <philipp@hoerist.com>2020-04-13 17:02:46 +0300
commitcbfb6e15f4dd21a809961d4e534a58628decb5f5 (patch)
treee78521d9d0422d15a333dbc4c9357b0379817313 /test
parent9ae48ff3497e497404732489f78a392209e07a63 (diff)
Tests: Add test for JID __eq__()
Diffstat (limited to 'test')
-rw-r--r--test/unit/test_jid_parsing.py10
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)