Available tests¶
TestEmailTypeMixin¶
-
class
thecut.forms.tests.test_forms.TestEmailTypeMixin(methodName='runTest')¶ Tests for the
thecut.forms.forms.EmailTypeMixinclass.-
test_input_type_not_set_to_email_for_non_emailfield()¶ Test that the HTML
inputattribute is not set toemailon a childdjango.forms.Fieldthat is notdjango.forms.EmailField.
-
test_input_type_set_to_email_for_emailfield()¶ Test that the HTML
inputattribute is set toemailon a childdjango.forms.EmailField.
-
TestRequiredMixin¶
-
class
thecut.forms.tests.test_forms.TestRequiredMixin(methodName='runTest')¶ Tests for the
thecut.forms.forms.RequiredMixinclass.-
test_required_attribute_not_set_for_optional_field()¶ Test that the HTML5
requiredattribute is not set on a childdjango.forms.Fieldthat does not haverequiredset toTrue.
-
test_required_attribute_not_set_for_required_checkbox_widget()¶ Test that the HTML5
requiredattribute is not set on a childdjango.forms.Fieldthat hasrequiredset toTrueand uses thedjango.forms.CheckboxSelectMultiplewidget.
-
test_required_attribute_not_set_for_required_radio_widget()¶ Test that the HTML5
requiredattribute is not set on a childdjango.forms.Fieldthat hasrequiredset toTrueand uses thedjango.forms.RadioSelectwidget.
-
test_required_attribute_set_for_required_field()¶ Test that the HTML5
requiredattribute is set on a childdjango.forms.Fieldthat hasrequiredset toTrue.
-
TestMaxLengthMixin¶
-
class
thecut.forms.tests.test_forms.TestMaxLengthMixin(methodName='runTest')¶ Tests for the
thecut.forms.forms.MaxLengthMixinclass.-
test_correct_maxlength_set_for_textarea_with_max_length()¶ Test if the correct HTML5
maxlengthattribute is set on a childdjango.forms.Fieldusingdjango.forms.Textarea`and with ``max_length`set.
-
test_no_maxlength_for_non_textarea_with_max_length()¶ Test if no HTML5
maxlengthattribute is set on a childdjango.forms.Fieldnot usingdjango.forms.Textareabut withmax_lengthset.
-
test_no_maxlength_for_non_textarea_with_no_max_length()¶ Test if no HTML5
maxlengthattribute is set on a childdjango.forms.Fieldnot usingdjango.forms.Textareaand with nomax_lengthset.
-
test_no_maxlength_for_textarea_with_no_max_length()¶ Test if no HTML5
maxlengthattribute is set on a childdjango.forms.Fieldusingdjango.forms.Textareaand with nomax_lengthset.
-
TestPlaceholderMixin¶
-
class
thecut.forms.tests.test_forms.TestPlaceholderMixin(methodName='runTest')¶ Tests for the
thecut.forms.forms.PlaceholderMixinclass.-
test_placeholder_not_set_when_not_defiend()¶ Test if the correct HTML5
placeholderattribute is not set on a py:class:django.forms.Field when no appropriate entry is added to theplaceholdersdict.
-
test_placeholder_set_when_defiend()¶ Test if the correct HTML5
placeholderattribute is set on a field when an appropriate entry is added to theplaceholdersdict.
-
TestTimeClassMixin¶
-
class
thecut.forms.tests.test_forms.TestTimeClassMixin(methodName='runTest')¶ Tests for the
thecut.forms.forms.TimeClassMixinclass.-
test_time_class_added_for_timefield()¶ Test if the
timeCSS class is applied to a child py:class:django.forms.Field using thedjango.forms.TimeInputwidget.
-
test_time_class_not_added_for_nontimefield()¶ Test if the
timeCSS class is not applied to a child py:class:django.forms.Field not using thedjango.forms.TimeInputwidget.
-
TestDateClassMixin¶
-
class
thecut.forms.tests.test_forms.TestDateClassMixin(methodName='runTest')¶ Tests for the
thecut.forms.forms.DateClassMixinclass.-
test_date_class_added_for_datefield()¶ Test if the
dateCSS class is applied to a child py:class:django.forms.Field using thedjango.forms.DateInputwidget.
-
test_date_class_not_added_for_nondatefield()¶ Test if the
dateCSS class is not applied to a child py:class:django.forms.Field not using thedjango.forms.DateInputwidget.
-
TestFormMixin¶
-
class
thecut.forms.tests.test_forms.TestFormMixin(methodName='runTest')¶ Tests for the
thecut.forms.forms.EmailTypeMixinclass.