Example #1
0
def test_extract_word_frequencies_2():
    expected = {
        u'sea': 6,
        u'sell': 4,
        u'shell': 5,
        u'shore': 3,
        u'sure': 2
    }
    assert analyser.extract_word_frequencies(MOCK_TEXT_2) == expected
Example #2
0
def test_extract_word_frequencies():
    expected = {
        u'ceaseth': 1,
        u'sea': 2,
        u'seething': 2,
        u'sufficeth': 1,
        u'thus': 1,
    }
    assert analyser.extract_word_frequencies(MOCK_TEXT_1) == expected
Example #3
0
def test_extract_word_frequencies_3():
    expected = {
        u'believe': 1,
        u'cannot': 2,
        u'really': 1,
        u'sea': 1,
        u'seller': 1,
        u'shell': 1
    }
    assert analyser.extract_word_frequencies(MOCK_TEXT_3) == expected