Files
deb-python-testtools/testtools/twistedsupport/__init__.py
Jonathan Lange 302751ef67 Options for logging in AsynchronousDeferredRunTest
* Exposes `CaptureTwistedLogs`, a fixture responsible for adding Twisted
  logs as a detail
* Adds `suppress_twisted_logging` and `store_twisted_logs` parameters to
  `AsynchronousDeferredRunTest`
2016-02-03 12:14:47 +00:00

34 lines
735 B
Python

# Copyright (c) testtools developers. See LICENSE for details.
"""Support for testing code that uses Twisted."""
__all__ = [
# Matchers
'succeeded',
'failed',
'has_no_result',
# Running tests
'AsynchronousDeferredRunTest',
'AsynchronousDeferredRunTestForBrokenTwisted',
'SynchronousDeferredRunTest',
'CaptureTwistedLogs',
'assert_fails_with',
'flush_logged_errors',
]
from testtools._deferredmatchers import (
succeeded,
failed,
has_no_result,
)
from testtools.deferredruntest import (
AsynchronousDeferredRunTest,
AsynchronousDeferredRunTestForBrokenTwisted,
SynchronousDeferredRunTest,
CaptureTwistedLogs,
assert_fails_with,
flush_logged_errors,
)