Exemplo n.º 1
0
 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
Exemplo n.º 2
0
 def setUp(self):
     self.sf = SignalFilter("me")
     self.invalidEnabler = ~eGlobalEnable.ON
     assert not eGlobalEnable.isValid(self.invalidEnabler)