def match_readlines(self, req, body, sizes):
        data = req.body.readlines()
        for line in data:
            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)
        data = req.body.readlines(sizes())
        if data:
            raise AssertionError("Read data after body finished: %r" % data)
RESTful CRUD controller
dataset/ETHPy150Open benoitc/gunicorn/tests/treq.py/request.match_readlines--crossover with--dataset/ETHPy150Open sahana/eden/controllers/event.py/incident