def test_pomodoro_start_with_one_interruption(self):
        pomodoro = Pomodoro(0.1)

        pomodoro.startPomodoro()
        pomodoro.interrupt()

        self.assertEqual(pomodoro.interruptions,1)
    def test_start_pomodoro(self):
        pomodoro = Pomodoro(0.1)

        pomodoro.startPomodoro()

        self.assertEqual(pomodoro.started, True)
        time.sleep(1)
        self.assertTrue(pomodoro.timeLeft<=(0.1*60))
    def test_pomodoro_start_without_interruptions(self):
        pomodoro = Pomodoro(0.1)

        pomodoro.startPomodoro()

        self.assertEqual(pomodoro.interruptions,0)
    def test_interrupt_pomodoro_without_start(self):
        pomodoro = Pomodoro()

        pomodoro.interrupt()

        self.assertEqual(pomodoro.interruptions,0)
    def test_starting_and_finish(self):
        pomodoro= Pomodoro(0.1)

        pomodoro.startPomodoro()
        time.sleep(7)
        self.assertEqual(pomodoro.finish,True)
    def test_not_finish_and_starting(self):
        pomodoro= Pomodoro(0.1)

        pomodoro.startPomodoro()

        self.assertEqual(pomodoro.finish,False)