def test_titleize_name(self): """Force the case of the pet's name to be titleized""" data = {'name': 'TESTING NAME'} form = forms.PetForm(data=data) form.is_valid() self.assertEquals(form.cleaned_data['name'], 'Testing Name')
def test_titleize_name(self): data = {'name': 'TESTING NAME'} form = forms.PetForm(data=data) form.is_valid() self.assertEquals(form.cleaned_data['name'], 'Testing Name')
def test_titleize_name(self): """Force the case of the pet's name to be titleized""" data = {"name": "TESTING NAME"} form = forms.PetForm(data=data) form.is_valid() self.assertEquals(form.cleaned_data["name"], "Testing Name")