'Replacing the current default global filter should not generate any error'

def test_update_default_filter(self):

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