def test_tags_property_get_set(self):
    self.stack = stack.Stack(self.ctx, 'stack_tags', self.tmpl)
    self.stack.store()
    stack_id = self.stack.id
    test_stack = stack.Stack.load(self.ctx, stack_id=stack_id)
    self.assertIsNone(test_stack._tags)
    self.assertEqual([], test_stack.tags)
    self.stack = stack.Stack(self.ctx, 'stack_name', self.tmpl)
    self.stack.tags = ['tag1', 'tag2']
    self.assertEqual(['tag1', 'tag2'], self.stack._tags)
    self.stack.store()
    stack_id = self.stack.id
    test_stack = stack.Stack.load(self.ctx, stack_id=stack_id)
    self.assertIsNone(test_stack._tags)
    self.assertEqual(['tag1', 'tag2'], test_stack.tags)
    self.assertEqual(['tag1', 'tag2'], test_stack._tags)
def test_tags_property_get_set(self):
    self.stack = stack.Stack(self.ctx, 'stack_tags', self.tmpl)
    self.stack.store()
    stack_id = self.stack.id
    test_stack = stack.Stack.load(self.ctx, stack_id=stack_id)
    self.assertIsNone(test_stack._tags)
    self.assertEqual([], test_stack.tags)
    self.stack = stack.Stack(self.ctx, 'stack_name', self.tmpl)
    self.stack.tags = ['tag1', 'tag2']
    self.assertEqual(['tag1', 'tag2'], self.stack._tags)
    self.stack.store()
    stack_id = self.stack.id
    test_stack = stack.Stack.load(self.ctx, stack_id=stack_id)
    self.assertIsNone(test_stack._tags)
    self.assertEqual(['tag1', 'tag2'], test_stack.tags)
    self.assertEqual(['tag1', 'tag2'], test_stack._tags)