def test_get_lexical_diversity_dictionary(self): book = Book(title='t', author='a', year_published=1, content_path='/tmp/mauve_tok') self.assertEquals( 1 / 2., book.get_lexical_diversity(only_dictionary_words=True))
def test_get_lexical_diversity_2(self): book = Book(title='t', author='a', year_published=1, content_path='/tmp/mauve_tok') self.assertEquals(1 / 3., book.get_lexical_diversity())