def test_remove_tupled_channel(dci): channel_tuple = tuple( DummyChannel(dci, f'Chan{C}', C) for C in ('A', 'B', 'C', 'D', 'E', 'F')) channels = ChannelList(dci, "TempSensorsTuple", DummyChannel, channel_tuple, snapshotable=False) chan_a = channels.ChanA with pytest.raises(AttributeError): channels.remove(chan_a)
def test_remove_tupled_channel(self): channel_tuple = tuple( DummyChannel(self.instrument, f'Chan{C}', C) for C in ('A', 'B', 'C', 'D', 'E', 'F')) channels = ChannelList(self.instrument, "TempSensorsTuple", DummyChannel, channel_tuple, snapshotable=False) chanA = channels.ChanA with self.assertRaises(AttributeError): channels.remove(chanA)
def test_remove_tupled_channel(dci_with_list): channel_tuple = tuple( DummyChannel(dci_with_list, f"Chan{C}", C) for C in ("A", "B", "C", "D", "E", "F")) channels = ChannelList( dci_with_list, "TempSensorsTuple", DummyChannel, channel_tuple, snapshotable=False, ) chan_a = channels.ChanA with pytest.raises(AttributeError): channels.remove(chan_a)