示例#1
0
文件: tests.py 项目: tekodan/pets
 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')
示例#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')
示例#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")