Beispiel #1
0
    def update(self, filepath):
        root = xml.parse(filepath).getroot()

        # Iterate over all ``provision`` elements and create
        # Provision instances off them.
        for el in root.findall('./provision'):
            self.provide(Provision.fromxml(self, el))
 def test_import_source(self):
     f = Provision.import_source('int')
     self.assertEqual(f, int)