def test_multiple_step(self): q = self.q_matrix2 q = QMatrix(q) r = RMatrix(q) a = self.configuration["stateA"] b = self.configuration["stateB"] time = self.configuration["time"] length = self.configuration["length"] random = self.random_numbers u = Uniformization(q, r, a, b, time, length) u.debugRandom(random) path = u.next() # Combatibilty with 1-based Matlab indexing path += 1 desired_path = self.path #print path, len(path) #print desired_path, len(path) self.assertTrue(np.array_equal(desired_path, path), msg="Using the same random numbers, Q- and R-Matrices the Uniformization has generated a different path, relative to Matlab/Octave.");