summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJonathan Lange <jml@canonical.com>2011-06-20 15:52:34 +0100
committerJonathan Lange <jml@canonical.com>2011-06-20 15:52:34 +0100
commit1f5f4f65a6a221e10d64e972b2d478d590c8bf8a (patch)
treecc4779a86e7c26d7cce526fb9a0b6741c551932b /doc
parent1057046206be4e5a285926da699fd097dd4843ef (diff)
downloadtesttools-1f5f4f65a6a221e10d64e972b2d478d590c8bf8a.tar.gz
API docs
Diffstat (limited to 'doc')
-rw-r--r--doc/for-test-authors.rst10
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/for-test-authors.rst b/doc/for-test-authors.rst
index 71cb69d..f2f1bbf 100644
--- a/doc/for-test-authors.rst
+++ b/doc/for-test-authors.rst
@@ -342,6 +342,16 @@ We highly recommend using the following flags::
doctest.ELLIPSIS | doctest.NORMALIZE_WHITESPACE | doctest.REPORT_NDIFF
+GreaterThan
+~~~~~~~~~~~
+
+Matches if the given thing is greater than the thing in the matcher. For
+example::
+
+ def test_greater_than_example(self):
+ self.assertThat(3, GreaterThan(2))
+
+
LessThan
~~~~~~~~