Exemple #1
0
class TestMuteAll(unittest.TestCase):
    def setUp(self):
        self.sf = SignalFilter("me")
        self.tv = voo()
    def tNoValue(self):
        assert(self.sf.muteAll(), iApiAction)
    def tMuteOn(self):
        assert(self.sf.muteAll(eMute.ON), iApiAction)
    def tMuteOff(self):
        assert(self.sf.muteAll(eMute.OFF), iApiAction)
    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
        else: