'Ensure importing keep newlines'

def test_newline_import(self):

    output = io.BytesIO()
    writer = csv.writer(output, quoting=csv.QUOTE_ALL)
    data_row = [' DCTB foo\n DCTB bar', '    "hello"    \n\n    \'world\'    ']
    writer.writerow(['name', 'Some    Value'])
    writer.writerow(data_row)
    import_wizard = self.env['base_import.import'].create({'res_model': 'base_import.tests.models.preview', 'file': output.getvalue(), 'file_type': 'text/csv'})
    (data, _) = import_wizard._convert_import_data(['name', 'somevalue'], {'quoting': '"', 'separator': ',', 'headers': True})
    self.assertItemsEqual(data, [data_row])
