summaryrefslogtreecommitdiff
path: root/tests/invalid_models_tests/test_custom_fields.py
diff options
context:
space:
mode:
authorAdam Johnson <me@adamj.eu>2017-07-11 10:53:22 +0200
committerTim Graham <timograham@gmail.com>2017-07-11 13:12:17 -0400
commitf816ceedf1ae13bec22363f6d78de53d3f60c3e9 (patch)
treea29b125901648d3cf324baab1b2aad5b73962240 /tests/invalid_models_tests/test_custom_fields.py
parent169c3b3e07829d9ffa409b6eb5c1094d8ef918a8 (diff)
Made assertions in invalid_models_tests consistent.
Diffstat (limited to 'tests/invalid_models_tests/test_custom_fields.py')
-rw-r--r--tests/invalid_models_tests/test_custom_fields.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/invalid_models_tests/test_custom_fields.py b/tests/invalid_models_tests/test_custom_fields.py
index 4c379e70f5..af14bae569 100644
--- a/tests/invalid_models_tests/test_custom_fields.py
+++ b/tests/invalid_models_tests/test_custom_fields.py
@@ -17,5 +17,4 @@ class CustomFieldTest(SimpleTestCase):
other_field = models.IntegerField()
field = Model._meta.get_field('field')
- errors = field.check()
- self.assertEqual(errors, [])
+ self.assertEqual(field.check(), [])