def testGetInstanceByName(self): node = mock.nodes.MockFieldContainer() self.failIfEqual(None, node) name = "MyNode" node.Name.value = name self.assertEqual(node, avango.get_instance_by_name(name))
def __getattr__(self, name): return avango.get_instance_by_name(name)