Beispiel #1
0
 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))
Beispiel #2
0
 def __getattr__(self, name):
     return avango.get_instance_by_name(name)