def test_suggestion_when_education_entered(self): Education.objects.create(organization_name="Org", degree_date=date.today(), education_level_code=3, degree_major="Gen Ed", user=self.user) expected = [] actual = Education.get_suggestion(self.user) self.assertEqual(actual, expected)
def test_suggestion_when_education_blank(self): expected = [{ 'priority': 5, 'msg': 'Would you like to provide information' + ' about your education?', 'url': reverse('handle_form') + '?module=Education&id=new', 'module': 'Education'}] actual = Education.get_suggestion(self.user) # Sort lists to ensure indentical order self.assertEqual(actual, expected)
def test_suggestion_when_education_blank(self): expected = [{ 'priority': 5, 'msg': 'Would you like to provide information' + ' about your education?', 'url': reverse('handle_form') + '?module=Education&id=new', 'module': 'Education' }] actual = Education.get_suggestion(self.user) # Sort lists to ensure indentical order self.assertEqual(actual, expected)
def test_suggestion_when_education_blank(self): expected = [ { "priority": 5, "msg": "Would you like to provide information" + " about your education?", "url": reverse("handle_form") + "?module=Education&id=new", "module": "Education", } ] actual = Education.get_suggestion(self.user) # Sort lists to ensure indentical order self.assertEqual(actual, expected)