diff options
Diffstat (limited to 'tests/__init__.py')
| -rw-r--r-- | tests/__init__.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/__init__.py b/tests/__init__.py index 6ff6d2a..15058e6 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -346,6 +346,11 @@ def run_isolated(path, prefix='tests/isolated/', env=None, args=None, timeout=No assert ok, 'Expected single line "pass" in stdout' +def check_is_timeout(obj): + value_text = getattr(obj, 'is_timeout', '(missing)') + assert obj.is_timeout, 'type={0} str={1} .is_timeout={2}'.format(type(obj), str(obj), value_text) + + certificate_file = os.path.join(os.path.dirname(__file__), 'test_server.crt') private_key_file = os.path.join(os.path.dirname(__file__), 'test_server.key') |
