summaryrefslogtreecommitdiff
path: root/tests/model_fields/tests.py
diff options
context:
space:
mode:
authorSimon Charette <charette.s@gmail.com>2015-04-17 17:38:20 -0400
committerSimon Charette <charette.s@gmail.com>2015-05-20 13:46:13 -0400
commitbe67400b477c1b0e7e81766f41bbceed0de74bdc (patch)
treefd8e6d087082754df9159a5549bfa80e2a8c57d9 /tests/model_fields/tests.py
parente2b77aceddbda9071fcfc38f90fb50d091d0b5fc (diff)
Refs #24652 -- Used SimpleTestCase where appropriate.
Diffstat (limited to 'tests/model_fields/tests.py')
-rw-r--r--tests/model_fields/tests.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/model_fields/tests.py b/tests/model_fields/tests.py
index bb19af263c..8238aeaa93 100644
--- a/tests/model_fields/tests.py
+++ b/tests/model_fields/tests.py
@@ -223,7 +223,7 @@ class ForeignKeyTests(test.TestCase):
)
-class ManyToManyFieldTests(test.TestCase):
+class ManyToManyFieldTests(test.SimpleTestCase):
def test_abstract_model_pending_operations(self):
"""
Many-to-many fields declared on abstract models should not add lazy relations to
@@ -425,7 +425,7 @@ class BooleanFieldTests(test.TestCase):
nb.save() # no error
-class ChoicesTests(test.TestCase):
+class ChoicesTests(test.SimpleTestCase):
def test_choices_and_field_display(self):
"""
Check that get_choices and get_flatchoices interact with
@@ -466,7 +466,7 @@ class SlugFieldTests(test.TestCase):
self.assertEqual(bs.s, 'slug' * 50)
-class ValidationTest(test.TestCase):
+class ValidationTest(test.SimpleTestCase):
def test_charfield_raises_error_on_empty_string(self):
f = models.CharField()
self.assertRaises(ValidationError, f.clean, "", None)
@@ -738,7 +738,7 @@ class GenericIPAddressFieldTests(test.TestCase):
self.assertEqual(loaded.ip, instance.ip)
-class PromiseTest(test.TestCase):
+class PromiseTest(test.SimpleTestCase):
def test_AutoField(self):
lazy_func = lazy(lambda: 1, int)
self.assertIsInstance(