def test_make_ngram_counts(self): self.assertEqual(sum(summarize.make_ngram_counts('abcdefg')), 4) self.assertEqual(sum(summarize.make_ngram_counts(u'abcdefg')), 4) self.assertEqual(sum(summarize.make_ngram_counts(u'abcdefg\u2006')), 5)