diff --git a/django_sshkey/tests.py b/django_sshkey/tests.py
index bcd9db7..4e6a44d 100644
--- a/django_sshkey/tests.py
+++ b/django_sshkey/tests.py
@@ -371,7 +371,7 @@ class UserKeyTestCase(BaseTestCase):
     self.assertRaises(ValidationError, key2.full_clean)
 
   def test_delete(self):
-    basekey = Key(key=open(self.key3_path + '.pub').read())
+    basekey = UserKey.base(key=open(self.key3_path + '.pub').read())
     basekey.full_clean()
     basekey.save()
     pk = basekey.pk