'Ensure big fields (e.g. b64-encoded image data) can be imported and
we\'re not hitting limits of the default CSV parser config'

def test_big_attachments(self):

    import csv, cStringIO
    from PIL import Image
    im = Image.new('RGB', (1920, 1080))
    fout = cStringIO.StringIO()
    writer = csv.writer(fout, dialect=None)
    writer.writerows([['name', 'db_datas'], ['foo', im.tobytes().encode('base64')]])
    import_wizard = self.env['base_import.import'].create({'res_model': 'ir.attachment', 'file': fout.getvalue(), 'file_type': 'text/csv'})
    results = import_wizard.do(['name', 'db_datas'], {'headers': True, 'separator': ',', 'quoting': '"'})
    self.assertFalse(results, 'results    should    be    empty    on    successful    import')
