Пример #1
0
    def test_docstring(self):
        prim = TestPrimitive()
        prim.__docstring__ = "Some documentation"
        with utils.capture() as out:
            glob.doc(prim)

        self.assertEqual('-----------------\nSome documentation\n', out[0])
Пример #2
0
    def test_docstring(self):
        prim = TestPrimitive()
        prim.__docstring__ = "Some documentation"
        with utils.capture() as out:
            glob.doc(prim)

        self.assertEqual('-----------------\nSome documentation\n', out[0])
Пример #3
0
    def test_docstring_None(self):
        with utils.capture() as out:
            glob.doc(TestPrimitive())

        self.assertEqual('', out[0])
Пример #4
0
    def test_docstring_None(self):
        with utils.capture() as out:
            glob.doc(TestPrimitive())

        self.assertEqual('', out[0])