def test_case_study_rich_media_image_three_update_help_text(): form = forms.CaseStudyRichMediaForm(initial={'image_three': '123'}) expected_values = forms.CaseStudyRichMediaForm.help_text_maps[2] assert form['image_three'].label == expected_values['update_label'] assert form['image_three'].help_text == ( expected_values['update_help_text'].format(initial_value='123'))
def test_case_study_rich_media_image_three_create_help_text(): form = forms.CaseStudyRichMediaForm(initial={'image_three': None}) expected_values = forms.CaseStudyRichMediaForm.help_text_maps[2] assert form['image_three'].label == expected_values['create_label'] assert form['image_three'].help_text == expected_values['create_help_text']