def test_addObserverTwice(self):
        d = EventDispatcher()
        cb1 = CallbackTracker()
        cb2 = CallbackTracker()

        d.addObserver("//event/testevent", cb1.call)
        d.addObserver("//event/testevent", cb2.call)
        d.dispatch(d, "//event/testevent")

        self.assertEquals(cb1.called, 1)
        self.assertEquals(cb1.obj, d)
        self.assertEquals(cb2.called, 1)
        self.assertEquals(cb2.obj, d)
Unlock multiple keys. Multi variant of :meth:`unlock`
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/words/test/test_xishutil.py/EventDispatcherTest.test_addObserverTwice--crossover with--dataset/ETHPy150Open couchbase/couchbase-python-client/couchbase/bucket.py/Bucket.unlock_multi