Exemplo n.º 1
0
    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
Exemplo n.º 2
0
    def test_deaf_on_success(self):
        deafOn(self.obj)

        assert self.obj.delegate.received == [DeafnessOnEvent()], \
               "self.delegate.received is %r" % self.delegate.received
Exemplo n.º 3
0
def test_deafness_turning_on():
    obj = MUDObject(None)
    deafOn(obj)
    assert obj.deaf
Exemplo n.º 4
0
    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
Exemplo n.º 5
0
    def test_deaf_on_success(self):
        deafOn(self.obj)

        assert self.obj.delegate.received == [DeafnessOnEvent()], \
               "self.delegate.received is %r" % self.delegate.received
Exemplo n.º 6
0
def test_deafness_turning_on():
    obj = MUDObject(None)
    deafOn(obj)
    assert obj.deaf