0
0
mirror of https://github.com/django/django.git synced 2024-11-30 15:10:46 +01:00

Refs #25085 -- Used more specific assertion in widget test.

This commit is contained in:
Tim Graham 2015-07-14 12:17:34 -04:00
parent 8ee6a3f1a8
commit b356dc4e07

View File

@ -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)