def test_feedback_001(self):
        """
        Test the feedback algorithm.
        """
        mi = 1,
        ma = 256
        base = 3

        obj = ExponentialTimeFeedback(min_time=mi,
                                      max_time=ma,
                                      base=base
                                      )

        # Estado inicial
        # Initial state.
        self.assertEqual(False, obj.feedback())
        obj.wait()  # wait = 1

        # 3 ^ 0 == 1 (wait is 1)
        self.assertEqual(True, obj.feedback())

        # Testa se voltou direito
        # Test if got back correctly.
        self.assertEqual(False, obj.feedback())

        # Aumentamos o tempo de sensoriamento 3^1 = 3
        # We increase the sensing time 3^1 = 3.
        obj.increase_time()
        self.assertEqual(False, obj.feedback())
        obj.wait()  # wait = 1
        self.assertEqual(False, obj.feedback())

        obj.wait()  # wait = 2
        obj.wait()  # wait = 3
        self.assertEqual(True, obj.feedback())  # wait gets back to 0  # volta wait para 0
        self.assertEqual(False, obj.feedback())

        obj.decrease_time()  # reset time 3^0 = 1  # reseta tempo 3^0 = 1
        obj.wait()  # wait = 1
        self.assertEqual(True, obj.feedback())  # wait gets back to 0  # volta wait para 0