def test_given_i_store_zato_info_under_conn_name(self): conn_name = util.rand_string() cluster_id = util.rand_int() url_path = util.rand_string() username = util.rand_string() password = util.rand_string() zato_.given_i_store_zato_info_under_conn_name(self.ctx, cluster_id, url_path, username, password, conn_name) stored = self.ctx.zato.user_ctx[conn_name] for key in stored: self.assertEquals(stored[key], eval(key))
def setUp(self): self.ctx = Bunch() self.ctx.zato = util.new_context(None, util.rand_string(), {}) self.fake_service_code = util.rand_string() conn_name = util.rand_string() cluster_id = util.rand_int() url_path = util.rand_string() username = util.rand_string() password = util.rand_string() zato_.given_i_store_zato_info_under_conn_name(self.ctx, cluster_id, url_path, username, password, conn_name) self.stored = self.ctx.zato.user_ctx[conn_name]