From b356dc4e07915521db1e768d6357e3d982877a6e Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Tue, 14 Jul 2015 12:17:34 -0400 Subject: [PATCH] Refs #25085 -- Used more specific assertion in widget test. --- tests/forms_tests/tests/test_widgets.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/forms_tests/tests/test_widgets.py b/tests/forms_tests/tests/test_widgets.py index 2f1b6e48f72..f680ff8dfff 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)