summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2017-09-06 14:07:47 -0700
committerDylan Baker <dylan@pnwbakers.com>2017-09-06 14:13:30 -0700
commit994320a2750bf6a765cc80d6d8e7ee44927ea3f7 (patch)
treee302b5766329ba74f667cfe1878582bab15ba27a /tests
parentde56be946af8a25a172ee37b02cd9a66d31d83df (diff)
tests/account: Add test for comparing to empty string
Diffstat (limited to 'tests')
-rw-r--r--tests/account_test.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/account_test.py b/tests/account_test.py
index 33ec076b..5761e62f 100644
--- a/tests/account_test.py
+++ b/tests/account_test.py
@@ -163,3 +163,8 @@ class TestAddress(unittest.TestCase):
def test_domain_name_eq_unicode_sensitive(self):
addr = account.Address(u'user', u'éxample.com', case_sensitive=True)
self.assertEqual(addr, u'user@Éxample.com')
+
+ @unittest.expectedFailure
+ def test_cmp_empty(self):
+ addr = account.Address(u'user', u'éxample.com')
+ self.assertNotEqual(addr, u'')