Ejemplo n.º 1
0
    def testShutdown(self):
        def first(null):
            y = PersistentDict('alpha')
            d = y['eagle']
            d.addCallback(self.failUnlessEqual, 'bald')
            return d

        x = PersistentDict('alpha')
        x['eagle'] = 'bald'
        d = x.shutdown()
        d.addCallback(first)
        return d
Ejemplo n.º 2
0
 def testShutdown(self):
     def first(null):
         y = PersistentDict('alpha')
         d = y['eagle']
         d.addCallback(self.failUnlessEqual, 'bald')
         return d
     
     x = PersistentDict('alpha')
     x['eagle'] = 'bald'
     d = x.shutdown()
     d.addCallback(first)
     return d