Exemple #1
0
 def test_state_field_label(self):
     form = ProfileForm()
     self.assertEqual(form.fields['state'].label, 'State')
Exemple #2
0
 def test_zip_code_field_label(self):
     form = ProfileForm()
     self.assertEqual(form.fields['zip_code'].label, 'ZIP code')
Exemple #3
0
 def test_city_field_label(self):
     form = ProfileForm()
     self.assertEqual(form.fields['city'].label, 'City')
Exemple #4
0
 def test_street_address_line_2_field_label(self):
     form = ProfileForm()
     self.assertEqual(form.fields['street_address_line2'].label,
                      'Address 2')
Exemple #5
0
 def test_secondary_phone_field_label(self):
     form = ProfileForm()
     self.assertEqual(form.fields['secondary_phone'].label,
                      'Phone (secondary)')
Exemple #6
0
 def test_preferred_name_field_label(self):
     form = ProfileForm()
     self.assertEqual(form.fields['preferred_name'].label, 'Preferred name')
Exemple #7
0
 def test_full_name_field_label(self):
     form = ProfileForm()
     self.assertEqual(form.fields['full_name'].label, 'Full name')