def test_is_probably_beginning_of_sentence(self): self.assertTrue( docformatter.is_probably_beginning_of_sentence( '- This is part of a list.')) self.assertFalse( docformatter.is_probably_beginning_of_sentence( '(this just continues an existing sentence).'))
def test_is_probably_beginning_of_sentence_pydoc_ref(self): self.assertFalse( docformatter.is_probably_beginning_of_sentence( ':see:MyClass This is not the start of a sentence.'))
def test_is_probably_beginning_of_sentence(self): self.assertTrue(docformatter.is_probably_beginning_of_sentence( '- This is part of a list.')) self.assertFalse(docformatter.is_probably_beginning_of_sentence( '(this just continues an existing sentence).'))