def match_iter(self, req, body, sizes):
        for line in req.body:
            if b'\n' in line[:-1]:
                raise AssertionError("Embedded new line: %r" % line)
            if line != body[:len(line)]:
                raise AssertionError("Invalid body data read: %r != %r" % (
                                                    line, body[:len(line)]))
            body = body[len(line):]
        if len(body):
            raise AssertionError("Failed to read entire body: %r" % body)
        try:
            data = six.next(iter(req.body))
            raise AssertionError("Read data after body finished: %r" % data)
        except StopIteration:
            pass

    # Construct a series of test cases from the permutations of
    # send, size, and match functions.
@case: hrm002-02
dataset/ETHPy150Open benoitc/gunicorn/tests/treq.py/request.match_iter--crossover with--dataset/ETHPy150Open sahana/eden/modules/tests/staff/staff_search.py/SearchStaff.test_hrm002_02_hrm_search_advance_by_Organization