Ahmad Sharif | 4467f00 | 2012-12-20 12:09:49 -0800 | [diff] [blame] | 1 | #!/usr/bin/python |
2 | # | ||||
3 | # Copyright 2011 Google Inc. All Rights Reserved. | ||||
4 | |||||
5 | """A global variable for testing.""" | ||||
6 | |||||
7 | |||||
8 | _is_test = [False] | ||||
9 | |||||
10 | |||||
11 | def SetTestMode(flag): | ||||
12 | _is_test[0] = flag | ||||
13 | |||||
14 | |||||
15 | def GetTestMode(): | ||||
16 | return _is_test[0] |