Exemplo n.º 1
0
    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).'))
Exemplo n.º 2
0
 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.'))
Exemplo n.º 3
0
    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).'))