Using django's TestCase and instead of the one from unittest.

This commit is contained in:
Gregor Müllegger 2013-05-19 13:10:35 +02:00
parent 631727d0f0
commit 8ea3b97786
2 changed files with 4 additions and 5 deletions

View file

@ -1,7 +1,6 @@
import unittest
from django.db import models
from django.core.exceptions import ImproperlyConfigured
from django.test import TestCase
from ..models import ModelAdmin2
from ..core import Admin2
@ -11,7 +10,7 @@ class Thing(models.Model):
pass
class Admin2Test(unittest.TestCase):
class Admin2Test(TestCase):
def setUp(self):
self.admin2 = Admin2()

View file

@ -1,4 +1,4 @@
from django.utils import unittest
from django.test import TestCase
from django.test.client import RequestFactory
from django.core.urlresolvers import reverse
@ -9,7 +9,7 @@ from djadmin2.models import ModelAdmin2
from ..models import Post
class ViewTest(unittest.TestCase):
class ViewTest(TestCase):
def setUp(self):
self.factory = RequestFactory()