From 5efdac61b1eb6ce3519d1c8348577fb3faad6325 Mon Sep 17 00:00:00 2001
From: stedif <stefano.difrischia@inaf.it>
Date: Wed, 3 Aug 2022 15:31:17 +0200
Subject: [PATCH] L2SS-846: add extra property check in integration test

---
 .../devices/test_device_temperature_manager.py     | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

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 54fdf767f..495e0fa02 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)
-- 
GitLab