'Clean up entity test data from Filter Test Cases.'

def clean_up_entities(self):

    for entity in ['user', 'group', 'project']:
        self._delete_test_data(entity, self.entity_list[entity])
        self._delete_test_data(entity, self.domain1_entity_list[entity])
    del self.entity_list
    del self.domain1_entity_list
    self.domain1['enabled'] = False
    self.resource_api.update_domain(self.domain1['id'], self.domain1)
    self.resource_api.delete_domain(self.domain1['id'])
    del self.domain1
