Exemplo n.º 1
0
def test_that_parentless_region_returns_none():
    x = Domain("regions/*", datatypes_dir=DATATYPES_DIR)
    assert x.parent(u"Sweden") == None
Exemplo n.º 2
0
def test_that_parent_returns_parent():
    x = Domain("regions/*", datatypes_dir=DATATYPES_DIR)
    assert x.parent(u"Stockholms län") == "Sweden"