'Test that prepare_message() returns the correct result.'

def test_prepare_message(self):

    mock_body = Mock()
    mock_priority = Mock()
    mock_content_encoding = Mock()
    mock_content_type = Mock()
    mock_header1 = Mock()
    mock_header2 = Mock()
    mock_properties1 = Mock()
    mock_properties2 = Mock()
    headers = {u'header1': mock_header1, u'header2': mock_header2}
    properties = {u'properties1': mock_properties1, u'properties2': mock_properties2}
    result = self.my_channel.prepare_message(mock_body, priority=mock_priority, content_type=mock_content_type, content_encoding=mock_content_encoding, headers=headers, properties=properties)
    assert (mock_body is result[u'body'])
    assert (mock_content_encoding is result[u'content-encoding'])
    assert (mock_content_type is result[u'content-type'])
    self.assertDictEqual(headers, result[u'headers'])
    self.assertDictContainsSubset(properties, result[u'properties'])
    assert (mock_priority is result[u'properties'][u'delivery_info'][u'priority'])
