def METHOD_NAME(self, schedule, expected, mock_schedulers):
    context = config_utils.NullConfigContext
    config = schedule_parse.valid_schedule(schedule, context)
    mock_schedulers.__getitem__.assert_called_with("cron")
    func = mock_schedulers.__getitem__.return_value
    assert_equal(config, func.return_value)
    func.assert_called_with(expected, context)