Beispiel #1
0
 def test_everything_correct(self):
     form = CandidateProfileForm(
         instance=self.candidate,
         data=test_user_data["candidate"]["profile"])
     self.assertTrue(form.is_valid())
Beispiel #2
0
 def test_health_conditions_label(self):
     form = CandidateProfileForm(instance=self.candidate)
     self.assertTrue(
         form.fields["health_conditions"].label == "Health conditions")
Beispiel #3
0
 def test_veteran_label(self):
     form = CandidateProfileForm(instance=self.candidate)
     self.assertTrue(form.fields["veteran"].label == "Veteran")
Beispiel #4
0
 def test_ethnicity_label(self):
     form = CandidateProfileForm(instance=self.candidate)
     self.assertTrue(form.fields["ethnicity"].label == "Ethnicity")
Beispiel #5
0
 def test_race_label(self):
     form = CandidateProfileForm(instance=self.candidate)
     self.assertTrue(form.fields["race"].label == "Race")
Beispiel #6
0
 def test_portfolio_website_field_label(self):
     form = CandidateProfileForm(instance=self.candidate)
     self.assertTrue(
         form.fields["portfolio_website"].label == "Portfolio website")
Beispiel #7
0
 def test_gender_label(self):
     form = CandidateProfileForm(instance=self.candidate)
     self.assertTrue(form.fields["gender"].label == "Gender")
Beispiel #8
0
 def test_phone_field_label(self):
     form = CandidateProfileForm(instance=self.candidate)
     self.assertTrue(form.fields["phone"].label == "Phone")
Beispiel #9
0
 def test_zip_code_field_label(self):
     form = CandidateProfileForm(instance=self.candidate)
     self.assertTrue(form.fields["zip_code"].label == "Zip code")
Beispiel #10
0
 def test_address_field_label(self):
     form = CandidateProfileForm(instance=self.candidate)
     self.assertTrue(form.fields["address_line"].label == "Address line")
Beispiel #11
0
 def test_email_field_label(self):
     form = CandidateProfileForm(instance=self.candidate)
     self.assertTrue(form.fields["email"].label == "Email")
Beispiel #12
0
 def test_last_name_field_label(self):
     form = CandidateProfileForm(instance=self.candidate)
     self.assertTrue(form.fields["last_name"].label == "Last name")