def test_store_backup_false(self):
    self.stack = stack.Stack(self.ctx, 'username_stack', self.tmpl, username='foobar')
    self.ctx.username = 'not foobar'
    self.stack.store(backup=False)
    db_stack = stack_object.Stack.get_by_id(self.ctx, self.stack.id)
    self.assertFalse(db_stack.backup)
def test_store_backup_false(self):
    self.stack = stack.Stack(self.ctx, 'username_stack', self.tmpl, username='foobar')
    self.ctx.username = 'not foobar'
    self.stack.store(backup=False)
    db_stack = stack_object.Stack.get_by_id(self.ctx, self.stack.id)
    self.assertFalse(db_stack.backup)