Пример #1
0
 def test_calls_validate_response(self, mock_validate_response):
     tstat = CommonThermostat(IP)
     tstat.reboot()
     mock_validate_response.assert_called_once_with(RESPONSE_VALUE)
Пример #2
0
 def test_calls_post(self, mock_validate_response, mock_post):
     tstat = CommonThermostat(IP)
     tstat.reboot()
     mock_post.assert_called_once_with(COMMAND, JSON_VALUE)