def setUp(self): self.icr = DataHelper.incoming_request() self.icr2 = DataHelper.incoming_request()
def test_payload_as_json(self): test_payload_string = '{"foo":"bar"}' icr = DataHelper.incoming_request(payload=test_payload_string) assert icr.payload_as_json == json.loads(test_payload_string)