Create assert_that function and use it from TestCase.assertThat.
authorDaniel Watkins <daniel@daniel-watkins.co.uk>
Sat, 30 Nov 2013 11:10:07 +0000 (11:10 +0000)
committerDaniel Watkins <daniel@daniel-watkins.co.uk>
Wed, 4 Dec 2013 11:50:56 +0000 (11:50 +0000)
commit3ec5d538cc078ac5621f0f658a51ecc0198d7f3d
tree4c37e9ce014ec00d038b0c5c72058c3e0c50c7e4
parentf57a7a8e506aa57f68b3b78d567b7224f653891f
Create assert_that function and use it from TestCase.assertThat.

This will allow matchers to be used outside of the TestCase context.
This is useful for people who can't buy in to testtools.TestCase fully
(for whatever reason), or who like using function tests (as supported by
nose).
testtools/assertions.py [new file with mode: 0644]
testtools/testcase.py