abandoned pull request revived to comply with comments in review

This commit is contained in:
Chris Gagnon 2014-05-27 12:03:11 -04:00
parent 05478d4a1c
commit ea46ad90f6
3 changed files with 6 additions and 5 deletions

View File

@ -292,8 +292,7 @@ Which is roughly equivalent to::
------------------------
In addition to ``self.assertThat``, testtools also provides the ``assert_that``
function in ``testtools.assertions`` (which is what ``self.assertThat`` backs
on to internally). This behaves as the method version does::
function in ``testtools.assertions`` This behaves like the method version does::
class TestSquare(TestCase):

View File

@ -7,6 +7,10 @@ from testtools.matchers import (
def assert_that(matchee, matcher, message='', verbose=False):
"""Assert that matchee is matched by matcher.
This should only be used when you need to use a function based
matcher, assertThat in Testtools.Testcase is prefered and has more
features
:param matchee: An object to match with matcher.
:param matcher: An object meeting the testtools.Matcher protocol.
:raises MismatchError: When matcher does not match thing.

View File

@ -20,9 +20,7 @@ from testtools.matchers import (
class AssertThatTests(object):
"""
A mixin containing shared tests for assertThat and assert_that.
"""
"""A mixin containing shared tests for assertThat and assert_that."""
def assert_that_callable(self, *args, **kwargs):
raise NotImplementedError