def testBasic(self): '''Locking in C++ and releasing in a python thread''' bucket = Bucket() unlocker = Unlocker(bucket) unlocker.start() bucket.lock() unlocker.join()
def testVirtualBlocker(self): '''Same as the basic case but blocker method is a C++ virtual called from C++.''' bucket = Bucket() unlocker = Unlocker(bucket) unlocker.start() result = bucket.callVirtualBlockerMethodButYouDontKnowThis() unlocker.join() self.assert_(result)
def testVirtualBlocker(self): '''Same as the basic case but blocker method is a C++ virtual called from C++.''' bucket = Bucket() unlocker = Unlocker(bucket) unlocker.start() result = bucket.callVirtualBlockerMethodButYouDontKnowThis() unlocker.join() self.assertTrue(result)
def __init__(self): Bucket.__init__(self)