

def _replace_hosting_device_status(self, attrs, old_status, new_status):
    if (attrs['status'] is old_status):
        attrs['status'] = new_status
    return attrs

dataset/ETHPy150Open openstack/networking-cisco/networking_cisco/tests/unit/cisco/device_manager/test_db_device_manager.py DeviceManagerTestCaseMixin._replace_hosting_device_status/original