Fix tests for mqtt publish with retain.

This commit is contained in:
Pascal Bach committed 2015-11-26 21:03:21 +01:00
1 parent 69e9d39690
commit 341c3a8fcd
3 files changed
+7 -7

No files matched your search

+2 -2
View File
@@ -68,7 +68,7 @@ class TestSensorMQTT(unittest.TestCase):
switch.turn_on(self.hass, 'switch.test')
self.hass.pool.block_till_done()
self.assertEqual(('command-topic', 'beer on', 2),
self.assertEqual(('command-topic', 'beer on', 2, False),
self.mock_publish.mock_calls[-1][1])
state = self.hass.states.get('switch.test')
self.assertEqual(STATE_ON, state.state)
@@ -76,7 +76,7 @@ class TestSensorMQTT(unittest.TestCase):
switch.turn_off(self.hass, 'switch.test')
self.hass.pool.block_till_done()
self.assertEqual(('command-topic', 'beer off', 2),
self.assertEqual(('command-topic', 'beer off', 2, False),
self.mock_publish.mock_calls[-1][1])
state = self.hass.states.get('switch.test')
self.assertEqual(STATE_OFF, state.state)