<commit_before>from python_zipcodes import ZipCodeManager
from nose.tools import assert_equal, assert_not_equal, assert_raises, assert_true

def test_basics():
    manager = ZipCodeManager()
    zipcodes = manager.get('US')
    zipcode = '66044'
    assert_true(zipcodes['us'].has_key(zipcode))
    assert_equal(zipcodes['us'][zipcode], {'city':'Lawrence', 'state':'KS'})<commit_msg>updated tests for the new api<commit_after>from python_zipcodes import ZipCodeManager
from nose.tools import assert_equal, assert_not_equal, assert_raises, assert_true

def test_basics():
    manager = ZipCodeManager()
    zipcodes = manager.zipcodes('US')
    zipcode = '66044'
    assert_true(zipcodes['us'].has_key(zipcode))
    assert_equal(zipcodes['us'][zipcode], {'city':'Lawrence', 'state':'KS'})
{'fraction_non_alphanumeric': 0.13468869123252858, 'fraction_numerical': 0.012706480304955527, 'mean_word_length': 6.576923076923077, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6156998', 'n_tokens_mistral': 265, 'n_tokens_neox': 250, 'n_words': 50}