예제 #1
0
    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)
예제 #2
0
    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)
예제 #3
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)
예제 #4
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)
예제 #5
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)