

def _set_ownership(self, bound_status, tenant_id, other_tenant_id=None):
    if (bound_status == UNBOUND):
        return None
    elif (bound_status == OTHER):
        return (other_tenant_id or self._other_tenant_id)
    else:
        return tenant_id

dataset/ETHPy150Open openstack/networking-cisco/networking_cisco/tests/unit/cisco/device_manager/test_db_device_manager.py TestDeviceManagerDBPlugin._set_ownership/original