示例#1
0
 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
示例#2
0
 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
示例#3
0
 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
示例#4
0
 def setUp(self):
     self.sf = SignalFilter("me")
     self.tv = voo()
     self.filter = aFilter()
     self.invalidMuteValue = ~eMute.ON
     assert not eMute.isValid(self.invalidMuteValue)