Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(17)  |  Call(17)  |  Derive(0)  |  Import(0)

src/l/i/linz2osm-HEAD/linz2osm/convert/tests/osm.py   linz2osm(Download)
        self.assertEqual(len(w.tree.findall('.//way')), 1)
 
        nodes = w.tree.findall('./create/node')
        self.assertEqual(len(nodes), 3)
        node_map = dict([(nn.get('id'), nn) for nn in nodes])
        # print w.xml()
 
        ways = w.tree.findall('./create/way')
        self.assertEqual(len(w.tree.findall('.//way')), 2)
 
        nodes = w.tree.findall('./create/node')
        # print w._nodes
 
        ways = w.tree.findall('./create/way')
        self.assertEqual(len(w.tree.findall('.//way')), 4)
 
        nodes = w.tree.findall('./create/node')