blob: 613138b218a85a4269debfa717cfe5ac78162225 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/usr/bin/python
#
# Copyright 2011 Google Inc. All Rights Reserved.
"""A global variable for testing."""
_is_test = [False]
def SetTestMode(flag):
_is_test[0] = flag
def GetTestMode():
return _is_test[0]
|