示例#1
0
    def test_format_docstring(self):
        DOCSTRING = '''
        a
        b

        c
        '''

        after_format = format_docstring(DOCSTRING)
        expected_format = 'a b \n\n c'
        self.assertEqual(after_format, expected_format)
示例#2
0
 def test_format_not_docstring(self):
     after_format = format_docstring(None)
     expected_format = ''
     self.assertEqual(after_format, expected_format)