diff options
author | Lucas Hoffmann <lucc@posteo.de> | 2019-11-04 08:00:10 +0100 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2019-11-06 10:54:00 +0000 |
commit | 414ca6c4b57752d139598e95e06009c55ff4543c (patch) | |
tree | a77d60aaf05f2c75224df95f7481f7328e414e7a /tests/test_account.py | |
parent | bbb96525c08f0c6ee9fc93e0dd0ccb3abfd1dca8 (diff) |
Remove unicode literals syntax from python2
Diffstat (limited to 'tests/test_account.py')
-rw-r--r-- | tests/test_account.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/test_account.py b/tests/test_account.py index 9d0ac125..975f80ad 100644 --- a/tests/test_account.py +++ b/tests/test_account.py @@ -35,23 +35,23 @@ class TestAccount(unittest.TestCase): def test_matches_address(self): """Tests address without aliases.""" acct = _AccountTestClass(address="foo@example.com") - self.assertTrue(acct.matches_address(u"foo@example.com")) - self.assertFalse(acct.matches_address(u"bar@example.com")) + self.assertTrue(acct.matches_address("foo@example.com")) + self.assertFalse(acct.matches_address("bar@example.com")) def test_matches_address_with_aliases(self): """Tests address with aliases.""" acct = _AccountTestClass(address="foo@example.com", aliases=['bar@example.com']) - self.assertTrue(acct.matches_address(u"foo@example.com")) - self.assertTrue(acct.matches_address(u"bar@example.com")) - self.assertFalse(acct.matches_address(u"baz@example.com")) + self.assertTrue(acct.matches_address("foo@example.com")) + self.assertTrue(acct.matches_address("bar@example.com")) + self.assertFalse(acct.matches_address("baz@example.com")) def test_matches_address_with_regex_aliases(self): """Tests address with regex aliases.""" - acct = _AccountTestClass(address=u"foo@example.com", + acct = _AccountTestClass(address="foo@example.com", alias_regexp=r'to\+.*@example.com') - self.assertTrue(acct.matches_address(u"to+foo@example.com")) - self.assertFalse(acct.matches_address(u"to@example.com")) + self.assertTrue(acct.matches_address("to+foo@example.com")) + self.assertFalse(acct.matches_address("to@example.com")) def test_deprecated_encrypt_by_default(self): |