def METHOD_NAME(self):
    # tests quotes with spaces
    args = 'foo doo -bar="??[?group == \'myg roup\'].name"'
    args = parse_quotes(args)
    self.shell.last.result = [
        {
            'group': 'myg roup',
            'name': 'fred'
        },
        {
            'group': 'mygroup3',
            'name': 'myname3'
        }
    ]
    self.shell.handle_jmespath_query(args)
    results = self.stream.getvalue().split(os.linesep)
    self.assertEqual(results[0], '"foo" "doo" "-bar=[\'fred\']"')