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