def test_sets_the_markup_widget_to_a_textarea_if_it_is_none(self): # Setup machina_settings.MACHINA_MARKUP_WIDGET = None # Run widget_class = fields._get_markup_widget() # Check assert widget_class == forms.Textarea