def test_rfc822_format(stub_message_from_raw, api_client, mime_message):
 full_path = '/messages/{}'.format(stub_message_from_raw.public_id)
 resp = api_client.get_raw(full_path, headers={'Accept': 'message/rfc822'})
 assert (resp.data == get_from_blockstore(stub_message_from_raw.data_sha256))

def test_rfc822_format ( stub_message_from_raw , api_client , mime_message ) : full_path = '/messages/{}' . format ( stub_message_from_raw . public_id ) resp = api_client . get_raw ( full_path , headers = { 'Accept' : 'message/rfc822' } ) assert ( resp . data == get_from_blockstore ( stub_message_from_raw . data_sha256 ) )
test the api response to retreive raw message contents .