def test_manage_neighbours(self): operator = Operator('127.0.0.1:1986') manage_neighbours = ManageNeighbour(operator, FriClient(), '127.0.0.1:1986', '/tmp', None) manage_neighbours._init_operation = _init_operation_mock threads = [] for i in xrange(10): tst = TestServerThread(manage_neighbours) threads.append(tst) for thread in threads: thread.start() for thread in threads: thread.join() operator.stop()