1# -*- coding: utf-8 -*- 2# Copyright 2011 The Chromium OS Authors. All rights reserved. 3# Use of this source code is governed by a BSD-style license that can be 4# found in the LICENSE file. 5 6"""A global variable for testing.""" 7 8is_test = [False] 9 10 11def SetTestMode(flag): 12 is_test[0] = flag 13 14 15def GetTestMode(): 16 return is_test[0] 17