Torque2D Reference

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes

- Namespace List
- Namespace Members

Classes | Functions | Variables
gtest_env_var_test Namespace Reference

## Classes
class | GTestEnvVarTest

## Functions
def | AssertEq (expected, actual)
def | SetEnvVar (env_var, value)
def | GetFlag (flag)
def | TestFlag (flag, test_val, default_val)

## Variables
string | __author__ = 'wan@google.com (Zhanyong Wan)'
string | IS_WINDOWS = 'nt'
string | IS_LINUX = 'posix'
tuple | COMMAND = gtest_test_utils.GetTestExecutablePath('gtest_env_var_test_')
tuple | environ = os.environ.copy()

## Function Documentation

def gtest_env_var_test.AssertEq | ( |  | expected,
|  |  | actual
| ) |  |

def gtest_env_var_test.GetFlag | ( |  | flag | ) |

    Runs gtest_env_var_test_ and returns its output.

def gtest_env_var_test.SetEnvVar | ( |  | env_var,
|  |  | value
| ) |  |

    Sets the env variable to 'value'; unsets it when 'value' is None.

def gtest_env_var_test.TestFlag | ( |  | flag,
|  |  | test_val,
|  |  | default_val
| ) |  |

    Verifies that the given flag is affected by the corresponding env var.

## Variable Documentation

string __author__ = 'wan@google.com (Zhanyong Wan)'

tuple COMMAND = gtest_test_utils.GetTestExecutablePath('gtest_env_var_test_')

tuple environ = os.environ.copy()

string IS_LINUX = 'posix'

string IS_WINDOWS = 'nt'