def test_batchIDs_traversal_order(self):
    self.DataIterator.lapID = 0
    self.DataIterator.curLapPos = -1
    bData1 = self.DataIterator.get_next_batch()      
    batchOrder = copy.copy(self.DataIterator.batchOrderCurLap)
    
    self.DataIterator.lapID = 1
    self.DataIterator.curLapPos = -1
    bData2 = self.DataIterator.get_next_batch()      
    batchOrder2 = self.DataIterator.batchOrderCurLap
    print batchOrder, batchOrder2
    assert not np.allclose(batchOrder, batchOrder2)
    assert np.allclose(np.unique(batchOrder),np.unique(batchOrder2))
Make sure batchIDs from consecutive laps are not the same
dataset/ETHPy150Open daeilkim/refinery/refinery/bnpy/bnpy-dev/tests/data/TestMinibatchIterator.py/TestMinibatchIterator.test_batchIDs_traversal_order