python 3.5 seems to not like assert_called_once()

This commit is contained in:
Derek Brooks 2017-11-13 23:20:16 -06:00
parent afcb0b8767
commit a3c6211c04

View File

@ -212,12 +212,12 @@ class TestNuHeat(unittest.TestCase):
is_away_mode_on.return_value = True
self.thermostat.turn_away_mode_off()
self.assertTrue(self.thermostat._force_update)
resume.assert_called_once()
resume.assert_called_once_with()
def test_resume_program(self):
"""Test resume schedule."""
self.thermostat.resume_program()
self.thermostat._thermostat.resume_schedule.assert_called_once()
self.thermostat._thermostat.resume_schedule.assert_called_once_with()
self.assertTrue(self.thermostat._force_update)
def test_set_temperature(self):