diff options
| author | Jon Dufresne <jon.dufresne@gmail.com> | 2016-06-16 11:19:18 -0700 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-06-16 14:21:14 -0400 |
| commit | 13d60298ea2a07242dc3952a9dfcd9c8857bf1f9 (patch) | |
| tree | 230d0f843401781e9b2062fe3c1f929655a5527e /tests/validation/tests.py | |
| parent | 70b7d6b4ea0cbd67406d193f0a7fed7e290d1eb6 (diff) | |
[1.10.x] Fixed #26747 -- Used more specific assertions in the Django test suite.
Backport of 4f336f66523001b009ab038b10848508fd208b3b from master
Diffstat (limited to 'tests/validation/tests.py')
| -rw-r--r-- | tests/validation/tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/validation/tests.py b/tests/validation/tests.py index af8f195194..e7a49b470d 100644 --- a/tests/validation/tests.py +++ b/tests/validation/tests.py @@ -113,7 +113,7 @@ class ModelFormsTests(TestCase): article = Article(author_id=self.author.id) form = ArticleForm(data, instance=article) self.assertEqual(list(form.errors), []) - self.assertNotEqual(form.instance.pub_date, None) + self.assertIsNotNone(form.instance.pub_date) article = form.save() def test_validation_with_invalid_blank_field(self): |
