Ejemplo n.º 1
0
    def setUp(self):
        storage._storage = dict()
        storage._temp = dict()
        storage._temp[1] = dict()
        storage._temp[2] = dict()

        locks.start()
Ejemplo n.º 2
0
    def test_lock_module_starting_creates_lock_manager(self):
        self.assertIsNone(locks._lock_manager)

        locks.start()

        self.assertIsNotNone(locks._lock_manager)
        self.assertEqual(locks._lock_manager.__class__, locks.LockManager)
Ejemplo n.º 3
0
 def setUp(self):
     self.manager = TransactionManager()
     locks.start()
Ejemplo n.º 4
0
def start_pokedb():
    storage.start()
    locks.start()
    transactions.start()
    access.start()
    return start_socket()