diff --git a/tangostationcontrol/tangostationcontrol/test/devices/test_observation_device.py b/tangostationcontrol/tangostationcontrol/test/devices/test_observation_device.py index 1087fdd9f2fa927b7ca88867d246802c09ffc6aa..dc04f5d07a1335190ba1c1ce1783144f36b3b734 100644 --- a/tangostationcontrol/tangostationcontrol/test/devices/test_observation_device.py +++ b/tangostationcontrol/tangostationcontrol/test/devices/test_observation_device.py @@ -41,8 +41,8 @@ class TestObservationDevice(device_base.DeviceTestCase, test_observation_base.Te with DeviceTestContext(observation.Observation, process=True) as proxy: proxy.off() proxy.observation_settings_RW = "{}" - proxy.Initialise() - self.assertEqual(DevState.FAULT, proxy.state()) + with self.assertRaises(DevFailed): + proxy.Initialise() def test_prohibit_rewriting_settings(self): """Test that changing observation settings is disallowed once init"""