summaryrefslogtreecommitdiff
path: root/tests/test_crypto.py
diff options
context:
space:
mode:
authorLucas Hoffmann <lucc@posteo.de>2019-11-04 08:00:10 +0100
committerPatrick Totzke <patricktotzke@gmail.com>2019-11-06 10:54:00 +0000
commit414ca6c4b57752d139598e95e06009c55ff4543c (patch)
treea77d60aaf05f2c75224df95f7481f7328e414e7a /tests/test_crypto.py
parentbbb96525c08f0c6ee9fc93e0dd0ccb3abfd1dca8 (diff)
Remove unicode literals syntax from python2
Diffstat (limited to 'tests/test_crypto.py')
-rw-r--r--tests/test_crypto.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_crypto.py b/tests/test_crypto.py
index 885750b5..8c8b241b 100644
--- a/tests/test_crypto.py
+++ b/tests/test_crypto.py
@@ -70,7 +70,7 @@ def make_key(revoked=False, expired=False, invalid=False, can_encrypt=True,
can_sign=True):
# This is ugly
mock_key = mock.create_autospec(gpg._gpgme._gpgme_key)
- mock_key.uids = [mock.Mock(uid=u'mocked')]
+ mock_key.uids = [mock.Mock(uid='mocked')]
mock_key.revoked = revoked
mock_key.expired = expired
mock_key.invalid = invalid
@@ -267,12 +267,12 @@ class TestListKeys(unittest.TestCase):
def test_list_keys_pub(self):
values = list(crypto.list_keys(hint="ambigu"))[0]
- self.assertEqual(values.uids[0].email, u'amigbu@example.com')
+ self.assertEqual(values.uids[0].email, 'amigbu@example.com')
self.assertFalse(values.secret)
def test_list_keys_private(self):
values = list(crypto.list_keys(hint="ambigu", private=True))[0]
- self.assertEqual(values.uids[0].email, u'amigbu@example.com')
+ self.assertEqual(values.uids[0].email, 'amigbu@example.com')
self.assertTrue(values.secret)