'Simulate the device.Get method to get the property of
the device object'

def get_device_property(self, device_obj):

    def device_side_effect(object_path, device_property):
        if (device_obj == self.device_0):
            if (device_property == 'Interface'):
                return self.interface_0
            elif (device_property == 'Managed'):
                return self.device_0.Managed
        elif (device_obj == self.device_1):
            if (device_property == 'Interface'):
                return self.interface_1
            elif (device_property == 'Managed'):
                return self.device_1.Managed
    return device_side_effect
