Пример #1
0
def test_parse_callback_bz2():
    handler = CapturingOSMDataHandler()
    digest.parse_callback(os.path.join("tests", "example.osm.bz2"), handler)
    check_example(handler.data)
Пример #2
0
def test_parse_callback_file():
    with open(os.path.join("tests", "example.osm"), encoding="utf8") as file:
        handler = CapturingOSMDataHandler()
        digest.parse_callback(file, handler)
        check_example(handler.data)