Ejemplo n.º 1
0
 def test_str(self):
     """Tests the docutilize function on a string"""
     doc = docutilize(dummy_function.__doc__)
     self.assertEqual(self.expected.strip(), doc.strip())
Ejemplo n.º 2
0
    def test_obj(self):
        """Tests the docutilize function on an object"""
        doc = docutilize(dummy_function)

        self.assertFalse(isinstance(doc, str))
        self.assertEqual(self.expected.strip(), doc.__doc__.strip())