Ejemplo n.º 1
0
 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')
Ejemplo n.º 2
0
 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')
Ejemplo n.º 3
0
 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")