'Assert a JSON array response for the given API request.
The API returns a JSON array, which matches a Python list, by
comparing that matching items exist in each sequence, but may
appear in a different order.
:param bytes method: HTTP method to request.
:param bytes path: HTTP path.
:param unicode request_body: Body of HTTP request.
:param int expected_code: The code expected in the response.
:param list expected_result: A list of items expects in a
JSON array response.
:param additional_headers: A mapping, additional HTTP headers to send.
:return: A ``Deferred`` that fires when test is done.'

def assertResultItems(self, method, path, request_body, expected_code, expected_result, additional_headers=pmap()):

    requesting = self.assertResponseCode(method, path, request_body, expected_code, additional_headers)
    requesting.addCallback(readBody)
    requesting.addCallback((lambda body: self.assertItemsEqual(expected_result, loads(body))))
    return requesting
