Known subclasses: testtools.tests.test_assert_that.TestAssertThatFunction, testtools.tests.test_assert_that.TestAssertThatMethod

A mixin containing shared tests for assertThat and assert_that.
Method assert_that_callable Undocumented
Method assertFails Assert that function raises a failure with the given message.
Method test_assertThat_matches_clean Undocumented
Method test_assertThat_mismatch_raises_description Undocumented
Method test_assertThat_output Undocumented
Method test_assertThat_message_is_annotated Undocumented
Method test_assertThat_verbose_output Undocumented
Method get_error_string Get the string showing how 'e' would be formatted in test output.
Method test_assertThat_verbose_unicode Undocumented
def assert_that_callable(self, *args, **kwargs):
def assertFails(self, message, function, *args, **kwargs):
Assert that function raises a failure with the given message.
def test_assertThat_matches_clean(self):
Undocumented
def test_assertThat_mismatch_raises_description(self):
Undocumented
def test_assertThat_output(self):
Undocumented
def test_assertThat_message_is_annotated(self):
Undocumented
def test_assertThat_verbose_output(self):
Undocumented
def get_error_string(self, e):

Get the string showing how 'e' would be formatted in test output.

This is a little bit hacky, since it's designed to give consistent output regardless of Python version.

In testtools, TestResult._exc_info_to_unicode is the point of dispatch between various different implementations of methods that format exceptions, so that's what we have to call. However, that method cares about stack traces and formats the exception class. We don't care about either of these, so we take its output and parse it a little.

def test_assertThat_verbose_unicode(self):
Undocumented
API Documentation for testtools, generated by pydoctor at 2015-07-01 16:11:28.