def METHOD_NAME(self):
    # tests that the query replaces the values in the command
    args = 'foo update --set blah=??[].group'
    args = parse_quotes(args)
    self.shell.last.result = [
        {
            'group': 'mygroup',
            'name': 'myname'
        },
        {
            'group': 'mygroup2',
            'name': 'myname2'
        },
        {
            'group': 'mygroup3',
            'name': 'myname3'
        }
    ]
    flag = self.shell.handle_jmespath_query(args)
    self.assertTrue(flag)
    results = self.stream.getvalue().strip().split(os.linesep)
    self.assertTrue(len(results) == 1)
    self.assertEqual(results[0], '"foo" "update" "--set" "blah=[\'mygroup\', \'mygroup2\', \'mygroup3\']"')