# Module: tf_agents.utils.test_utils

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/agents/blob/v0.19.0/tf_agents/utils/test_utils.py) |

Common utility functions for testing.

## Classes

[`class TestCase`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/utils/test_utils/TestCase): Base class for TF-Agents unit tests.

## Functions

[`FLAGS(...)`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/utils/test_utils/FLAGS): Registry of :class:`~absl.flags.Flag` objects.

[`contains(...)`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/utils/test_utils/contains): Check if all items in list2 are in list1.

[`main(...)`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/utils/test_utils/main)

[`test_src_dir_path(...)`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/utils/test_utils/test_src_dir_path): Returns an absolute test srcdir path given a relative path.

<br />

<br />

<br />

| ## Other Members ||
|---|---|
| absolute_import | Instance of `__future__._Feature` |
| division | Instance of `__future__._Feature` |
| print_function | Instance of `__future__._Feature` |

<br />