+ self.storage.set_if_and_publish(0xbad, self.channels_and_events, self.key,
+ self.old_data, self.new_data)
+ with pytest.raises(SdlTypeError):
+ self.storage.set_if_and_publish(self.ns, None, self.key, self.old_data,
+ self.new_data)
+ with pytest.raises(SdlTypeError):
+ self.storage.set_if_and_publish(self.ns, {0xbad: "ev1"}, self.key,
+ self.old_data, self.new_data)
+ with pytest.raises(SdlTypeError):
+ self.storage.set_if_and_publish(self.ns, {"ch1": 0xbad}, self.key,
+ self.old_data, self.new_data)
+ with pytest.raises(SdlTypeError):
+ self.storage.set_if_and_publish(self.ns, {"ch1": self.ill_event}, self.key,
+ self.old_data, self.new_data)
+ with pytest.raises(SdlTypeError):
+ self.storage.set_if_and_publish(self.ns, {"ch1": ["ev1", 0xbad]}, self.key,
+ self.old_data, self.new_data)