def tInvalidValue(self): muteValue = ~eMute.ON assert not eMute.isValid(muteValue) try: self.sf.muteAll(muteValue) except ApiParamError, e: assert e.item == muteValue assert eMute in e.allowedTypes
def tRemoveListContainsInamespaceInListInvalidMute(self): muteValue = ~eMute.ON mute = (self.tv, muteValue) assert not eMute.isValid(muteValue) try: self.sf.remove([mute]) except ApiParamError, e: assert e.item == muteValue assert eMute in e.allowedTypes
def testInvalidMute(self): eM = ~eMute.OFF assert not eMute.isValid(eM) try: self._do(eM, eGlobalEnable.ON) except ApiParamError, e: assert e.item == eM assert eMute in e.allowedTypes assert len(e.allowedTypes) == 1
def setUp(self): self.sf = SignalFilter("me") self.tv = voo() self.filter = aFilter() self.invalidMuteValue = ~eMute.ON assert not eMute.isValid(self.invalidMuteValue)