Remove the tests for metanl_word_frequency too. Doh.

This commit is contained in:
Andrew Lin 2013-11-11 13:21:25 -05:00
parent 63bebe6ad3
commit 68d262791c

View File

@ -1,7 +1,7 @@
from __future__ import unicode_literals from __future__ import unicode_literals
from nose.tools import eq_, assert_almost_equal, assert_greater from nose.tools import eq_, assert_almost_equal, assert_greater
from wordfreq.query import (word_frequency, average_frequency, wordlist_size, from wordfreq.query import (word_frequency, average_frequency, wordlist_size,
wordlist_info, metanl_word_frequency) wordlist_info)
def test_freq_examples(): def test_freq_examples():
@ -27,11 +27,6 @@ def test_freq_examples():
) )
def test_compatibility():
assert_almost_equal(metanl_word_frequency('the|en'), 1e9, places=3)
assert_almost_equal(metanl_word_frequency('the|en', offset=1e9), 2e9, places=3)
def _check_normalized_frequencies(wordlist, lang): def _check_normalized_frequencies(wordlist, lang):
assert_almost_equal( assert_almost_equal(
average_frequency(wordlist, lang) * wordlist_size(wordlist, lang), average_frequency(wordlist, lang) * wordlist_size(wordlist, lang),