def setUp(self): super(TestAttributeStore, self).setUp() self.attribute_store = attribute_store.AttributeStore() self.fake_object = mock.MagicMock(object_id=mock.sentinel.oid) self.tagged_obj = dsl.MuranoObjectInterface(self.fake_object) self.owner_type = dsl_types.MuranoTypeReference(self.fake_object) self.owner_type.type.name = mock.sentinel.typename self.name = 'foobar'
def get_reference(self): return dsl_types.MuranoTypeReference(self)