Skip to content

Commit

Permalink
Use assertIsNone
Browse files Browse the repository at this point in the history
  • Loading branch information
jaap3 committed Mar 7, 2024
1 parent c48158f commit 7e70f84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testproject/tests/test_widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def test_value_from_datadict_handles_none(self):
value_from_datadict doesn't sanitize None values
"""
widget = RichTextWidget()
self.assertEqual(None, widget.value_from_datadict({}, {}, "baz"))
self.assertIsNone(widget.value_from_datadict({}, {}, "baz"))

def test_init_sanitizer_is_used_by_value_from_datadict(self):
"""
Expand Down

0 comments on commit 7e70f84

Please sign in to comment.