def METHOD_NAME(self):
    field = self._get_multiselect_form_field(required=False)
    attrs = field.widget.get_context(name="my_field", value=None, attrs={})[
        "widget"
    ]["attrs"]
    self.assertEqual(attrs["data-required"], "")