def test_expose(self): self.props["double"] = 3.14 other = core.PropertyMap() self.props.exposeTo(other, "double") self.assertEqual(other["double"], self.props["double"]) self.props.exposeTo(other, "double", "float") self.assertEqual(other["float"], self.props["double"])
def __init__(self, *args, **kwargs): super(TestPropertyMap, self).__init__(*args, **kwargs) self.props = core.PropertyMap()