'Test queue_subtasks_for_query() if the last subtask only needs to accommodate < items_per_tasks items.'

def test_queue_subtasks_for_query1(self):

    mock_create_subtask_fcn = Mock()
    self._queue_subtasks(mock_create_subtask_fcn, 3, 7, 1)
    mock_create_subtask_fcn_args = mock_create_subtask_fcn.call_args_list
    self.assertEqual(len(mock_create_subtask_fcn_args[0][0][0]), 3)
    self.assertEqual(len(mock_create_subtask_fcn_args[1][0][0]), 3)
    self.assertEqual(len(mock_create_subtask_fcn_args[2][0][0]), 2)
