diff --git a/tests/test_jwt.py b/tests/test_jwt.py
index <HASH>..<HASH> 100644
--- a/tests/test_jwt.py
+++ b/tests/test_jwt.py
@@ -1,13 +1,13 @@
 from __future__ import unicode_literals
 
+import json
+import sys
+import time
+
 from calendar import timegm
 from datetime import datetime
 from decimal import Decimal
 
-import sys
-import time
-import json
-
 import jwt
 
 if sys.version_info >= (2, 7):
@@ -630,7 +630,7 @@ class TestJWT(unittest.TestCase):
                                      algorithm='ES384')
 
         with open('tests/testkey_ec.pub', 'r') as ec_pub_file:
-            pub_rsakey = ec_pub_file.read()
+            pub_eckey = ec_pub_file.read()
             assert jwt.decode(jwt_message, pub_eckey)
 
             load_output = jwt.load(jwt_message)
Fix test_encode_decode_with_ecdsa_sha<I> so that it actually uses the key its trying to use when using a SSH public key as a string argument to decode()