def test_deaf_on_failure(self): self.obj.deaf = True deafOn(self.obj) assert self.obj.delegate.received == [DeafnessOnAlreadyEvent()], \ "self.delegate.received is %r" % self.delegate.received
def test_deaf_on_success(self): deafOn(self.obj) assert self.obj.delegate.received == [DeafnessOnEvent()], \ "self.delegate.received is %r" % self.delegate.received
def test_deafness_turning_on(): obj = MUDObject(None) deafOn(obj) assert obj.deaf