Example #1
0
def test_get_correction_when_not_available():
    root = read_xml('tel_search_ch-success.xml')

    result = phonebook._find_correction(root)
    assert_is_none(result)
Example #2
0
def test_get_correction_when_available():
    root = read_xml('tel_search_ch-correction.xml')

    result = phonebook._find_correction(root)
    assert_equals('032 321 61 **', result)