def test_suggestion_when_license_provided(self): License.objects.create(user=self.user, license_name="Name", license_type="Type") suggestions = License.get_suggestion(self.user) self.assertEqual(len(suggestions), 0)
def test_suggestion_when_license_blank(self): suggestions = License.get_suggestion(self.user) self.assertEqual(len(suggestions), 1) suggestion = suggestions[0] self.assertEqual(suggestion["msg"], "Would you like to add and professional licenses or" + " certifications?") self.assertEqual(suggestion["priority"], 3)
def test_suggestion_when_license_blank(self): suggestions = License.get_suggestion(self.user) self.assertEqual(len(suggestions), 1) suggestion = suggestions[0] self.assertEqual(suggestion['msg'], 'Would you like to add and professional licenses or' + ' certifications?') self.assertEqual(suggestion['priority'], 3)
def test_suggestion_when_license_blank(self): suggestions = License.get_suggestion(self.user) self.assertEqual(len(suggestions), 1) suggestion = suggestions[0] self.assertEqual( suggestion['msg'], 'Would you like to add and professional licenses or' + ' certifications?') self.assertEqual(suggestion['priority'], 3)