'When updating an existing filter to @is_default, if an other filter
already has the flag the flag should be moved'

def test_update_filter_set_default(self):

    self.build('ir.filters', dict(name='a', user_id=self.USER_ID, model_id='ir.filters'), dict(name='b', is_default=True, user_id=self.USER_ID, model_id='ir.filters'))
    Filters = self.env['ir.filters'].sudo(self.USER_ID)
    Filters.create_or_replace({'name': 'a', 'model_id': 'ir.filters', 'user_id': self.USER_ID, 'is_default': True})
    filters = Filters.get_filters('ir.filters')
    self.assertItemsEqual(map(noid, filters), [dict(name='a', user_id=self.USER_NG, is_default=True, domain='[]', context='{}', sort='[]'), dict(name='b', user_id=self.USER_NG, is_default=False, domain='[]', context='{}', sort='[]')])
