def test_given_format(self): value = util.rand_string() common.given_format(self.ctx, value) self.assertEquals(self.ctx.zato.request.format, value)
def setUp(self): self.ctx = Bunch() self.ctx.zato = util.new_context(None, util.rand_string(), {}) self.format = common.given_format(self.ctx,'JSON') self.request = common.given_request_is(self.ctx, '{}')