Exemplo n.º 1
0
 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)
Exemplo n.º 2
0
 def test_items_per_chunk_larger_num_items(self):
     expected = [slice(0, 2)]
     result = calculate_chunk_slices(100, 2)
     self.assertEqual(expected, result)
Exemplo n.º 3
0
 def test_one_video_in_chunk(self):
     expected = [slice(0, 1), slice(1, 2)]
     result = calculate_chunk_slices(1, 2)
     self.assertEqual(expected, result)