def test_suggestion_when_summary_blank(self): suggestions = Summary.get_suggestion(self.user) self.assertEqual(len(suggestions), 1) suggestion = suggestions[0] self.assertEqual(suggestion["msg"], "Would you like to add a summary of your career?") self.assertEqual(suggestion["priority"], 5)
def test_suggestion_when_summary_blank(self): suggestions = Summary.get_suggestion(self.user) self.assertEqual(len(suggestions), 1) suggestion = suggestions[0] self.assertEqual(suggestion['msg'], "Would you like to add a summary of your career?") self.assertEqual(suggestion['priority'], 5)
def test_suggestion_when_summary_provided(self): Summary.objects.create(user=self.user, headline="Headline") suggestions = Summary.get_suggestion(self.user) self.assertEqual(len(suggestions), 0)