Exemplo n.º 1
0
    def test_day_left_text_get_tomorrow_for_one(self):
        # given
        one_day = 1

        # when
        result = celebrations.day_left_text(one_day)

        # debug
        print(result)

        # then
        self.assertEqual(result, 'tomorrow')
Exemplo n.º 2
0
    def test_day_left_text_get_today_for_zero(self):
        # given
        zero_days = 0

        # when
        result = celebrations.day_left_text(zero_days)

        # debug
        print(result)

        # then
        self.assertEqual(result, 'today')
Exemplo n.º 3
0
    def test_day_left_text_get_5_days_for_five(self):
        # given
        five_days = 5

        # when
        result = celebrations.day_left_text(five_days)

        # debug
        print(result)

        # then
        self.assertEqual(result, '5 days left')
Exemplo n.º 4
0
    def test_day_left_text_error_for_negative(self):
        # given
        negative_days = -1

        # when
        result = celebrations.day_left_text(negative_days)

        # debug
        print(result)

        # then
        self.assertEqual(result, 'error')
Exemplo n.º 5
0
    def test_day_left_text_get_2_days_for_two(self):
        # given
        two_days = 2

        # when
        result = celebrations.day_left_text(two_days)

        # debug
        print(result)

        # then
        self.assertEqual(result, '2 days left')