def test_remove_section_header(self): self.assertEqual( 'foo\nbar\n', docformatter.remove_section_header('----\nfoo\nbar\n')) line = 'foo\nbar\n' self.assertEqual(line, docformatter.remove_section_header(line)) line = ' \nfoo\nbar\n' self.assertEqual(line, docformatter.remove_section_header(line))
def test_remove_section_header(self): self.assertEqual( 'foo\nbar\n', docformatter.remove_section_header('----\nfoo\nbar\n') ) line = 'foo\nbar\n' self.assertEqual(line, docformatter.remove_section_header(line)) line = ' \nfoo\nbar\n' self.assertEqual(line, docformatter.remove_section_header(line))