+++ /dev/null
-"""This is a sample module that doesn't really test anything all that\r
- interesting.\r
-\r
-It simply has a few tests, some of which succeed and some of which fail.\r
-\r
-It's important that the numbers remain constant as another test is\r
-testing the running of these tests.\r
-\r
-\r
->>> 2+2\r
-4\r
-"""\r
-\r
-\r
-def foo():\r
- """\r
-\r
- >>> 2+2\r
- 5\r
-\r
- >>> 2+2\r
- 4\r
- """\r
-\r
-def bar():\r
- """\r
-\r
- >>> 2+2\r
- 4\r
- """\r
-\r
-def test_silly_setup():\r
- """\r
-\r
- >>> import test.test_doctest\r
- >>> test.test_doctest.sillySetup\r
- True\r
- """\r
-\r
-def w_blank():\r
- """\r
- >>> if 1:\r
- ... print 'a'\r
- ... print\r
- ... print 'b'\r
- a\r
- <BLANKLINE>\r
- b\r
- """\r
-\r
-x = 1\r
-def x_is_one():\r
- """\r
- >>> x\r
- 1\r
- """\r
-\r
-def y_is_one():\r
- """\r
- >>> y\r
- 1\r
- """\r
-\r
-__test__ = {'good': """\r
- >>> 42\r
- 42\r
- """,\r
- 'bad': """\r
- >>> 42\r
- 666\r
- """,\r
- }\r
-\r
-def test_suite():\r
- import doctest\r
- return doctest.DocTestSuite()\r