summaryrefslogtreecommitdiffhomepage
path: root/tests/test_pkey.py
diff options
context:
space:
mode:
authorMichal Kuffa <michal@bynder.com>2017-07-28 14:27:31 +0200
committerMichal Kuffa <michal@bynder.com>2017-07-28 14:27:31 +0200
commit81edf66550d6ba271e3889ab50ccf73eb843b958 (patch)
treed1083663ba3e67553d8358f80b14a4718d6a5b35 /tests/test_pkey.py
parente114b0d3f57842b3ddcf0bcc5d19e9f24399cace (diff)
Move assertions outside of the open context manager
Diffstat (limited to 'tests/test_pkey.py')
-rw-r--r--tests/test_pkey.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_pkey.py b/tests/test_pkey.py
index 89a3f74a..4121107a 100644
--- a/tests/test_pkey.py
+++ b/tests/test_pkey.py
@@ -469,8 +469,8 @@ class KeyTest(unittest.TestCase):
def test_ed25519_load_from_file_obj(self):
with open(test_path('test_ed25519.key')) as pkey_fileobj:
key = Ed25519Key.from_private_key(pkey_fileobj)
- self.assertEqual(key, key)
- self.assertTrue(key.can_sign())
+ self.assertEqual(key, key)
+ self.assertTrue(key.can_sign())
def test_keyfile_is_actually_encrypted(self):
# Read an existing encrypted private key