def test_wordCount(self):
        words = []
        for line in self.output:
            words.extend(line.split())
        wordCount = len(words)
        sampleTextWordCount = len(self.sampleSplitText)

        self.assertEqual(wordCount, sampleTextWordCount)
Compare the number of words.
dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/test/test_text.py/WrapTest.test_wordCount