'Simulate the get_object method to get the proxy object'

def get_object(self):

    def bus_side_effect(proxy_object, obj_path):
        if (obj_path == constants.NM_MANAGER_OBJ_PATH):
            return self.network_manager_proxy
        elif (obj_path == self.interface_0):
            return self.device_proxy_0
        elif (obj_path == self.interface_1):
            return self.device_proxy_1
    return bus_side_effect
