diff --git a/tangostationcontrol/tangostationcontrol/integration_test/default/devices/test_device_temperature_manager.py b/tangostationcontrol/tangostationcontrol/integration_test/default/devices/test_device_temperature_manager.py index 54fdf767f77848991d01cf7240edf239dcce30bd..495e0fa02dbe325b71932611061bde94fb928b41 100644 --- a/tangostationcontrol/tangostationcontrol/integration_test/default/devices/test_device_temperature_manager.py +++ b/tangostationcontrol/tangostationcontrol/integration_test/default/devices/test_device_temperature_manager.py @@ -46,16 +46,16 @@ class TestDeviceTemperatureManager(AbstractTestBases.TestDeviceBase): return sdp_proxy def test_alarm(self): - self.setup_recv_proxy() - self.setup_sdp_proxy() - self.proxy.off() - self.proxy.initialise() - self.proxy.on() - # Exclude other devices which raise a TimeoutError, since they wait for the attribute *_translator_busy_R to become False # (set instead to True in this test environment) self.proxy.put_property({"Shutdown_Device_List": ["STAT/SDP/1"]}) devices = [DeviceProxy("STAT/SDP/1")] + + self.proxy.off() + self.proxy.initialise() + self.proxy.on() + self.setup_recv_proxy() + self.setup_sdp_proxy() # make sure none of the devices are in the OFF or FAULT state. Any other state is fine for dev in devices: @@ -65,6 +65,8 @@ class TestDeviceTemperatureManager(AbstractTestBases.TestDeviceBase): dev.off() dev.warm_boot() + self.assertEqual(self.proxy.get_property('Shutdown_Device_List')['Shutdown_Device_List'][0], ["STAT/SDP/1"]) + # Here we trigger our own change event by just using an RW attribute self.recv_proxy.HBAT_LED_on_RW = [[False] * 32] * 96 time.sleep(2)