def make_buffer_get_request(self, expected_status=<NUM_LIT:200>, expected_count=None, **get_params):
response = self.client.get(<EOL>reverse('<STR_LIT>'),<EOL>get_params,<EOL>format='<STR_LIT>'<EOL>)<EOL>self.assertEqual(response.status_code, expected_status)<EOL>if expected_status == <NUM_LIT:200>:<EOL><INDENT>t_id = get_params.get("<STR_LIT>")<EOL>if expected_count is None:<EOL><INDENT>expected_count = Buffer.objects.filter(transfer_session_id=t_id).count()<EOL><DEDENT>data = json.loads(response.content.decode())<EOL>if isinstance(data, dict) and "<STR_LIT>" in data:<EOL><INDENT>data = data["<STR_LIT>"]<EOL><DEDENT>model_uuids = [d["<STR_LIT>"] for d in data]<EOL>Buffer.objects.filter(transfer_session_id=t_id, model_uuid__in=model_uuids).delete()<EOL>errors = validate_and_create_buffer_data(data, TransferSession.objects.get(id=t_id))<EOL>self.assertFalse(errors)<EOL>self.assertEqual(expected_count, Buffer.objects.filter(transfer_session_id=t_id, model_uuid__in=model_uuids).count())<EOL>self.assertEqual(expected_count, len(data))<EOL>for record in data:<EOL><INDENT>self.assertEqual(<NUM_LIT:3>, len(record["<STR_LIT>"]))<EOL><DEDENT>return data<EOL><DEDENT>
Make a GET request to the buffer endpoint. Warning: Deletes the local buffer instances before validating.