'A primary view with inherit_id=None can\'t be converted to extension'

@mute_logger('odoo.sql_db')
def testPurePrimaryToExtension(self):

    view_pure_primary = self.View.create({'inherit_id': None, 'arch': '<qweb/>'})
    with self.assertRaises(IntegrityError):
        view_pure_primary.write({'mode': 'extension'})
