Пример #1
0
 def test_given_format(self):
     value = util.rand_string()
     common.given_format(self.ctx, value)
     self.assertEquals(self.ctx.zato.request.format, value)
Пример #2
0
 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, '{}')
Пример #3
0
 def test_given_format(self):
     value = util.rand_string()
     common.given_format(self.ctx, value)
     self.assertEquals(self.ctx.zato.request.format, value)