'Test Python API set_state.'

def test_set_state(self):

    remote.set_state(master_api, 'test.test', 'set_test')
    state = hass.states.get('test.test')
    self.assertIsNotNone(state)
    self.assertEqual('set_test', state.state)
    self.assertFalse(remote.set_state(broken_api, 'test.test', 'set_test'))
