def METHOD_NAME(self):
    """Test create_tar_buffer method."""
    files_data = {
        "test0.json": {"id": 1, "report": [{"key": "value"}]},
        "test1.json": {"id": 2, "report": [{"key": "value"}]},
    }
    # create tar buffer expects encoded data
    files_data_encoded = {
        file_name: encode_content(data, "json")
        for file_name, data in files_data.items()
    }
    tar_buffer = create_tar_buffer(files_data_encoded)
    self.assertIsInstance(tar_buffer, (io.BytesIO))
    self.assertIn("getvalue", dir(tar_buffer))
    with tarfile.open(fileobj=tar_buffer) as tar:
        files = tar.getmembers()
        self.assertNotEqual(files, [])
        self.assertEqual(2, len(files))
        for file_obj in files:
            file = tar.extractfile(file_obj)
            extracted_content = json.loads(file.read().decode())
            self.assertIn(extracted_content, files_data.values())