diff options
| author | Tim Graham <timograham@gmail.com> | 2015-07-14 12:17:34 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-07-14 12:17:34 -0400 |
| commit | b356dc4e07915521db1e768d6357e3d982877a6e (patch) | |
| tree | 6d4da7c034cae0296e0025afde885569797a06f8 /tests | |
| parent | 8ee6a3f1a855bf983639a14fc2393baa8ead741f (diff) | |
Refs #25085 -- Used more specific assertion in widget test.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/forms_tests/tests/test_widgets.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/forms_tests/tests/test_widgets.py b/tests/forms_tests/tests/test_widgets.py index 2f1b6e48f7..f680ff8dff 100644 --- a/tests/forms_tests/tests/test_widgets.py +++ b/tests/forms_tests/tests/test_widgets.py @@ -2007,8 +2007,8 @@ class SelectWidgetTests(SimpleTestCase): """ widget = Select() obj = copy.deepcopy(widget) - self.assertTrue(widget is not obj) + self.assertIsNot(widget, obj) self.assertEqual(widget.choices, obj.choices) - self.assertTrue(widget.choices is not obj.choices) + self.assertIsNot(widget.choices, obj.choices) self.assertEqual(widget.attrs, obj.attrs) - self.assertTrue(widget.attrs is not obj.attrs) + self.assertIsNot(widget.attrs, obj.attrs) |
