def test_concordance_output(self): model = ConcordanceModel() model.set_word("of", DummyState) model.set_corpus(self.corpus) output = model.get_data() self.assertEqual(len(output), 7) self.assertEqual(len(output.text_features), 1) self.assertTrue(output.text_features[0].name.startswith('Conc. of'))
def test_concordance_output(self): model = ConcordanceModel() model.set_word("of") model.set_corpus(self.corpus) self.assertEqual(len(model.get_data()), 7)