def test__calc_iter_cnt_remainder(self): total_recs = 101 max_rec = 10 ret = BaseDataHandler._calc_iter_cnt(total_recs=total_recs, max_rec=max_rec) self.assertEqual(ret, 11)
def test__calc_iter_cnt_even(self): total_recs = 100 max_rec = 10 ret = BaseDataHandler._calc_iter_cnt(total_recs=total_recs, max_rec=max_rec) self.assertEqual(ret, 10)