def test_requires_deferred_auth(self):
    tmpl = {'HeatTemplateFormatVersion': '2012-12-12', 'Resources': {'AResource': {'Type': 'GenericResourceType'}, 'BResource': {'Type': 'GenericResourceType'}, 'CResource': {'Type': 'GenericResourceType'}}}
    self.stack = stack.Stack(self.ctx, 'update_test_stack', template.Template(tmpl), disable_rollback=False)
    self.assertFalse(self.stack.requires_deferred_auth())
    self.stack['CResource'].requires_deferred_auth = True
    self.assertTrue(self.stack.requires_deferred_auth())
def test_requires_deferred_auth(self):
    tmpl = {'HeatTemplateFormatVersion': '2012-12-12', 'Resources': {'AResource': {'Type': 'GenericResourceType'}, 'BResource': {'Type': 'GenericResourceType'}, 'CResource': {'Type': 'GenericResourceType'}}}
    self.stack = stack.Stack(self.ctx, 'update_test_stack', template.Template(tmpl), disable_rollback=False)
    self.assertFalse(self.stack.requires_deferred_auth())
    self.stack['CResource'].requires_deferred_auth = True
    self.assertTrue(self.stack.requires_deferred_auth())