1 # Copyright 2011 Google Inc. All Rights Reserved. 2 """A global variable for testing.""" 3 4 is_test = [False] 5 6 7 def SetTestMode(flag): 8 is_test[0] = flag 9 10 11 def GetTestMode(): 12 return is_test[0] 13