def test_query_state_value(self):
        with mock.patch('subprocess.check_output') as mock_run:
            mock_run.return_value = b' foo bar '
            result = self.rs._query_state_value('runme')
            self.assertEqual('foo bar', result)
            mock_run.assert_called_once_with('runme', shell=True)
@summary: Rename lights, or set a light's state, as determined by the                  resource object.
dataset/ETHPy150Open home-assistant/home-assistant/tests/components/rollershutter/test_command_line.py/TestCommandRollerShutter.test_query_state_value--crossover with--dataset/ETHPy150Open allanbunch/beautifulhue/beautifulhue/api/_light.py/Light.update