def test_num_laps(self):
    ''' Make sure we raise the expected exception after exhausting all the data
    '''
    nLap = self.DataIterator.nLap
    nBatch = self.DataIterator.nBatch
    for lapID in range(nLap):
      for batchCount in range(nBatch):
        bData = self.DataIterator.get_next_batch()
        assert self.DataIterator.curLapPos is batchCount
        assert self.DataIterator.lapID == lapID
        self.verify_batch(bData)
    try:
      bData = self.DataIterator.get_next_batch()
      raise Exception('should not make it to this line!')
    except StopIteration:
      assert 1==1
dataset/ETHPy150Open daeilkim/refinery/refinery/bnpy/bnpy-dev/tests/data/TestMinibatchIterator.py/TestMinibatchIterator.test_num_laps/operator `==` -> `is`