Exemplo n.º 1
0
    def test_weird_stuff_does_not_appear_after_april_fools(self):
        actual_path = holiday_chooser.get_holiday_widget_path()

        self.assertNotEquals('widgets/Weird.qml', actual_path)
Exemplo n.º 2
0
 def update_holiday(self):
     self.holidaySource = "../{}".format(holiday_chooser.get_holiday_widget_path())
Exemplo n.º 3
0
    def test_hearts_do_not_appear_after_valentines_day(self):
        actual_path = holiday_chooser.get_holiday_widget_path()

        self.assertNotEquals('widgets/Hearts.qml', actual_path)
Exemplo n.º 4
0
    def test_weird_stuff_appears_on_april_fools(self):
        actual_path = holiday_chooser.get_holiday_widget_path()

        self.assertEquals('widgets/Weird.qml', actual_path)
Exemplo n.º 5
0
    def test_hearts_appear_five_days_before_valentines_day(self):
        actual_path = holiday_chooser.get_holiday_widget_path()

        self.assertEquals('widgets/Hearts.qml', actual_path)
Exemplo n.º 6
0
    def test_snow_appears_at_end_of_february(self):
        actual_path = holiday_chooser.get_holiday_widget_path()

        self.assertEquals('widgets/Snow.qml', actual_path)
Exemplo n.º 7
0
    def test_snow_appears_at_start_of_december(self):
        actual_path = holiday_chooser.get_holiday_widget_path()

        self.assertEquals('widgets/Snow.qml', actual_path)
Exemplo n.º 8
0
    def test_no_widget_by_default(self):
        actual_path = holiday_chooser.get_holiday_widget_path()

        self.assertIsNone(actual_path)
Exemplo n.º 9
0
 def update_holiday(self):
     self.holidaySource = "../{}".format(
         holiday_chooser.get_holiday_widget_path())