#!/usr/bin/python2 # Copyright 2015 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # pylint: disable-msg=C0111 from __future__ import absolute_import from __future__ import division from __future__ import print_function import os, unittest import mox import common import shutil import tempfile import types from autotest_lib.client.common_lib import control_data from autotest_lib.server.cros.dynamic_suite import control_file_getter from autotest_lib.server.cros.dynamic_suite import suite as suite_module from autotest_lib.server.hosts import host_info from autotest_lib.site_utils import test_runner_utils from six.moves import range from six.moves import zip class StartsWithList(mox.Comparator): def __init__(self, start_of_list): """Mox comparator which returns True if the argument to the mocked function is a list that begins with the elements in start_of_list. """ self._lhs = start_of_list def equals(self, rhs): if len(rhs)