diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/account_test.py | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/tests/account_test.py b/tests/account_test.py index 959d4c7c..99df9632 100644 --- a/tests/account_test.py +++ b/tests/account_test.py @@ -58,14 +58,6 @@ class TestAddress(unittest.TestCase): """Tests for the Address class.""" - def test_constructor_bytes(self): - with self.assertRaises(AssertionError): - account.Address(b'username', b'domainname') - - def test_from_string_bytes(self): - with self.assertRaises(AssertionError): - account.Address.from_string(b'user@example.com') - def test_from_string(self): addr = account.Address.from_string('user@example.com') self.assertEqual(addr.username, 'user') @@ -75,10 +67,6 @@ class TestAddress(unittest.TestCase): addr = account.Address('ušer', 'example.com') self.assertEqual(str(addr), 'ušer@example.com') - def test_bytes(self): - addr = account.Address('ušer', 'example.com') - self.assertEqual(bytes(addr), 'ušer@example.com'.encode('utf-8')) - def test_eq_unicode(self): addr = account.Address('ušer', 'example.com') self.assertEqual(addr, 'ušer@example.com') |