Commits

Anonymous committed 574ad7a

Moved support files

  • Participants
  • Parent commits 14f36fc

Comments (0)

Files changed (7)

File support/docs.rst

->>> 1 == 1
-True

File support/docs.txt

->>> 2 == 2
-True
->>> 3 == 2
-False

File support/pkg1/__init__.py

-#

File support/pkg1/mod1.py

-
-def some_other_func():
-    """This is a function with an inline doctest.
-
-    >>> a = 1
-    >>> b = 2
-    >>> a == b
-    False
-    """
-    pass

File support/pkg1/test/__init__.py

-#

File support/pkg1/test/test_things.py

-import unittest2
-
-class SomeTests(unittest2.TestCase):
-
-    def test_ok(self):
-        pass
-
-    def test_typeerr(self):
-        raise TypeError("oops")
-
-    def test_failed(self):
-        print "Hello stdout"
-        assert False, "I failed"
-
-    def test_skippy(self):
-        raise unittest2.SkipTest("I wanted to skip")
-
-
-def test_func():
-    assert 1 == 1
-
-
-def test_gen():
-    def check(a, b):
-        assert a == b
-    for i in range(0, 5):
-        yield check, (i, i,)
-
-
-did_setup = False
-def setup():
-    global did_setup
-    did_setup = True
-
-
-def test_fixt():
-    assert did_setup
-test_fixt.setup = setup
-

File support/unittest.cfg

-[outcomes]
-treat-as-skip =
-    IOError
-    TodoError
-    TypeError
-treat-as-fail =
-    GlormpError