'Test the \'action\' callback'

def test_action(self):

    results = []
    def action():
        results.append(True)
    barrier = self.barriertype(self.N, action)
    def f():
        barrier.wait()
        self.assertEqual(len(results), 1)
    self.run_threads(f)
