Ejemplo n.º 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])
Ejemplo n.º 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])
Ejemplo n.º 3
0
    def test_docstring_None(self):
        with utils.capture() as out:
            glob.doc(TestPrimitive())

        self.assertEqual('', out[0])
Ejemplo n.º 4
0
    def test_docstring_None(self):
        with utils.capture() as out:
            glob.doc(TestPrimitive())

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