Commit cbfb6e15 authored by Philipp Hörist's avatar Philipp Hörist

Tests: Add test for JID __eq__()

parent 9ae48ff3
......@@ -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)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment