def test_init_stored_context_false(self):
    ctx_init = utils.dummy_context(user='mystored_user', password='mystored_pass')
    ctx_init.request_id = self.ctx.request_id
    creds = ucreds_object.UserCreds.create(ctx_init)
    self.stack = stack.Stack(self.ctx, 'creds_store1', self.tmpl, user_creds_id=creds.id, use_stored_context=False)
    ctx_expected = self.ctx.to_dict()
    self.assertEqual(ctx_expected, self.stack.context.to_dict())
    self.stack.store()
    self.assertEqual(ctx_expected, self.stack.context.to_dict())
def test_init_stored_context_false(self):
    ctx_init = utils.dummy_context(user='mystored_user', password='mystored_pass')
    ctx_init.request_id = self.ctx.request_id
    creds = ucreds_object.UserCreds.create(ctx_init)
    self.stack = stack.Stack(self.ctx, 'creds_store1', self.tmpl, user_creds_id=creds.id, use_stored_context=False)
    ctx_expected = self.ctx.to_dict()
    self.assertEqual(ctx_expected, self.stack.context.to_dict())
    self.stack.store()
    self.assertEqual(ctx_expected, self.stack.context.to_dict())