def setUp(self): storage._storage = dict() storage._temp = dict() storage._temp[1] = dict() storage._temp[2] = dict() locks.start()
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)
def setUp(self): self.manager = TransactionManager() locks.start()
def start_pokedb(): storage.start() locks.start() transactions.start() access.start() return start_socket()