There are quite a few doctests in the code base already existing, but up to now we haven't assert that they work as shown. This branch adds those assertion, and in so doing adds eight tests to the test suite. A few small edits were necessary to make these "new" tests pass.
$ testify test -v --summary | grep DocTest
test.utils.stringdiffer_test DocTest.test_doc:highlight ... ok in 0.00s
test.utils.stringdiffer_test DocTest.test_doc:highlight_regions ... ok in 0.00s
test.utils.test_turtle DocTest.test_doc ... ok in 0.00s
test.assertions_test DocTest.test_doc:assert_exactly_one ... ok in 0.00s
test.assertions_test DocTest.test_doc:assert_raises ... ok in 0.00s
test.assertions_test DocTest.test_doc:assert_raises_such_that ... ok in 0.00s
test.assertions_test DocTest.test_doc:assert_warns ... ok in 0.00s
test.assertions_test DocTest.test_doc:assert_warns_such_that ... ok in 0.00s
I've also added a base class for DocMetaTestCase to simplify making doctest suites.
There are quite a few doctests in the code base already existing, but up to now we haven't assert that they work as shown. This branch adds those assertion, and in so doing adds eight tests to the test suite. A few small edits were necessary to make these "new" tests pass.
I've also added a base class for DocMetaTestCase to simplify making doctest suites.