def test_sentance_too_short_for_flesch_reading_ease(self): test_string = "A test" assert None == Parser.calculate_flesch_reading_ease(test_string)
def test_calculate_flesch_reading_ease(self): test_string = "The Australian platypus is seemingly a hybrid of a mammal and reptilian creature" assert 49.82 == Parser.calculate_flesch_reading_ease(test_string)