def METHOD_NAME(self):
    # tests invalid query
    args = 'vm show -g "??[0].group" -n "??[1].name"'
    args = parse_quotes(args)
    self.shell.last.result = [
        {
            'group': 'mygroup',
            'name': 'myname'
        },
        {
            'group': 'mygroup3',
        }
    ]
    flag = self.shell.handle_jmespath_query(args)
    self.assertTrue(flag)
    results = self.stream.getvalue().split(os.linesep)
    self.assertEqual(results[0], '"vm" "show" "-g" "mygroup" "-n" "None"')