Exemplo n.º 1
0
def test_get_name_when_not_available():
    root = read_xml('tel_search_ch-correction.xml')

    result = phonebook._find_name(root)
    assert_is_none(result)
Exemplo n.º 2
0
def test_get_name_when_available():
    root = read_xml('tel_search_ch-success.xml')

    result = phonebook._find_name(root)
    assert_equals('Berner Fachhochschule, Technik & Informatik', result)