#!/usr/bin/python # 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 import os, unittest import mox import common import subprocess import types from autotest_lib.server import utils from autotest_lib.server.cros.dynamic_suite import constants from autotest_lib.site_utils import test_runner_utils 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)