Skip to content
Snippets Groups Projects
Commit 09186c5f authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

and tests

parent 33d1c42c
No related branches found
No related tags found
No related merge requests found
......@@ -5,9 +5,7 @@ It sounds like a melody
from __future__ import print_function, absolute_import, division
import six
import unittest
from coolamqp.objects import NodeDefinition
from coolamqp.objects import NodeDefinition, Message
class TestObjects(unittest.TestCase):
......@@ -23,3 +21,10 @@ class TestObjects(unittest.TestCase):
n1 = NodeDefinition(u'amqp://ala:ma@kota/')
self.assertEquals(n1.virtual_host, u'/')
def test_get_message_properties(self):
empty_p_msg = Message(b'')
ce_p_msg = Message(b'', content_encoding=b'wtf')
self.assertIsNone(empty_p_msg.properties.get('content_encoding'))
self.assertEquals(ce_p_msg.properties.get('content_encoding', b'wtf'))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment