def testInvalidEnable(self): eG = ~eGlobalEnable.OFF assert not eGlobalEnable.isValid(eG) try: self._do(eMute.ON, eG) except ApiParamError, e: assert e.item == eG assert eGlobalEnable in e.allowedTypes assert len(e.allowedTypes) == 1
def setUp(self): self.sf = SignalFilter("me") self.invalidEnabler = ~eGlobalEnable.ON assert not eGlobalEnable.isValid(self.invalidEnabler)