'Test with state value.'

def test_query_state_value(self):

    with mock.patch('subprocess.check_output') as mock_run:
        mock_run.return_value = '    foo    bar    '
        result = self.rs._query_state_value('runme')
        self.assertEqual('foo    bar', result)
        self.assertEqual(mock_run.call_count, 1)
        self.assertEqual(mock_run.call_args, mock.call('runme', shell=True))
