@patch('time.sleep', fake_sleep)
def test_temperature_increase_decrease(self):
    w = Watertank(1000, [100, 100], [100], 0.5)
    w.autoupdater_start(1)
    t0 = self._get_state(w)['temperatures'][0]
    i = 0
    while (i < 15):
        time.sleep(0.5)
        i += 1
    t1 = self._get_state(w)['temperatures'][0]
    self.assertGreater(t1, t0)
    w.set_inputs([0, 0])
    i = 0
    while (i < 15):
        time.sleep(0.5)
        i += 1
    t2 = self._get_state(w)['temperatures'][0]
    self.assertGreater(t1, t2)
@patch('time.sleep', fake_sleep)
def test_temperature_increase_decrease(self):
    w = Watertank(1000, [100, 100], [100], 0.5)
    w.autoupdater_start(1)
    t0 = self._get_state(w)['temperatures'][0]
    i = 0
    while (i < 15):
        time.sleep(0.5)
        i += 1
    t1 = self._get_state(w)['temperatures'][0]
    self.assertGreater(t1, t0)
    w.set_inputs([0, 0])
    i = 0
    while (i < 15):
        time.sleep(0.5)
        i += 1
    t2 = self._get_state(w)['temperatures'][0]
    self.assertGreater(t1, t2)