def test_frame_reply_with_name(): f = Frame('test-frame') freply = f.reply('test-reply') assert freply.name == 'test-reply' assert freply.meta.get('reply_to') == f.uuid
def test_frame_reply_for_request(): f = Frame('test-frame', kind=Kind.REQUEST) freply = f.reply() assert freply.meta.get('reply_to') == f.uuid assert freply.kind == Kind.RESPONSE
def test_frame_reply(): f = Frame('test-frame') freply = f.reply() assert freply.meta.get('reply_to') == f.uuid
def test_frame_reply_with_meta(): meta = {'test': 'item'} f = Frame('test-frame') freply = f.reply(meta=meta) assert freply.meta.get('reply_to') == f.uuid assert freply.meta.get('test') == 'item'