Example #1
0
def test_updated_nodes():
    """Nodes were added, modified or deleted"""
    t.assert_missing_node(10000)
    t.assert_cached_node(10001, (10.0, 40.0))
    t.assert_cached_node(10002, (10.1, 40.0))
    place_10001 = t.query_row(t.db_conf, 'osm_places', 10001)
    assert place_10001['name'] == 'Bar', place_10001
    place_10002 = t.query_row(t.db_conf, 'osm_places', 10002)
    assert place_10002['name'] == 'Baz', place_10002
Example #2
0
def test_updated_nodes():
    """Nodes were added, modified or deleted"""
    t.assert_missing_node(10000)
    t.assert_cached_node(10001, (10.0, 40.0))
    t.assert_cached_node(10002, (10.1, 40.0))
    place_10001 = t.query_row(t.db_conf, 'osm_places', 10001)
    assert place_10001['name'] == 'Bar', place_10001
    place_10002 = t.query_row(t.db_conf, 'osm_places', 10002)
    assert place_10002['name'] == 'Baz', place_10002
Example #3
0
def test_missing_nodes():
    """Cache does not contain nodes from previous imports"""
    t.assert_missing_node(10001)
    t.assert_missing_node(10002)
    place_10000 = t.query_row(t.db_conf, 'osm_places', 10000)
    assert place_10000['name'] == 'Foo', place_10000
Example #4
0
def test_missing_nodes():
    """Cache does not contain nodes from previous imports"""
    t.assert_missing_node(10001)
    t.assert_missing_node(10002)
    place_10000 = t.query_row(t.db_conf, 'osm_places', 10000)
    assert place_10000['name'] == 'Foo', place_10000