def test_two_items_in_chunk_last_chunk_full(self): expected = [slice(0, 2), slice(2, 4)] result = calculate_chunk_slices(2, 4) self.assertEqual(expected, result)
def test_items_per_chunk_larger_num_items(self): expected = [slice(0, 2)] result = calculate_chunk_slices(100, 2) self.assertEqual(expected, result)
def test_one_video_in_chunk(self): expected = [slice(0, 1), slice(1, 2)] result = calculate_chunk_slices(1, 2) self.assertEqual(expected, result)