Add base test class that includes unclaimed temporary and file descriptor test mixins. GitLab issue #309.

This commit is contained in:
Roberto Rosario
2016-06-27 19:20:42 -04:00
parent 113ad144e0
commit 5ac1276f25
6 changed files with 46 additions and 26 deletions
+2 -3
View File
@@ -5,8 +5,7 @@ import StringIO
import gnupg
import mock
from django.test import TestCase
from common.tests import BaseTestCase
from common.utils import TemporaryFile
from ..exceptions import (
@@ -44,7 +43,7 @@ def mock_recv_keys(self, keyserver, *keyids):
return ImportResult()
class KeyTestCase(TestCase):
class KeyTestCase(BaseTestCase):
def test_key_instance_creation(self):
# Creating a Key instance is analogous to importing a key
key = Key.objects.create(key_data=TEST_KEY_DATA)