Beispiel #1
0
 def test_get_tone(self):
     """
     Check Tone number.
     """
     for item in self.tone_list:
         cal = AncientCalendar(*item[0])
         self.assertEqual(cal.get_tone(verbose=False), item[1])
         del cal
Beispiel #2
0
    def test_get_day_of_week(self):
        """
        Sunday must be colored red
        """

        # Sunday
        cal = AncientCalendar(25, 10, 2015, calendar='gregorian')
        sunday_text = cal.get_day_of_week(verbose=True)
        self.assertIn(u'{red}', sunday_text)
        self.assertIn(u'{end}', sunday_text)