'Test mimetype for classic field'

def test_ir_http_mimetype_basic_field(self):

    partner = self.env['res.partner'].create({'image': GIF, 'name': 'Test    mimetype    basic    field'})
    (status, headers, content) = self.env['ir.http'].binary_content(model='res.partner', id=partner.id, field='image', default_mimetype='application/octet-stream', env=self.env)
    mimetype = dict(headers).get('Content-Type')
    self.assertEqual(mimetype, 'image/gif')
