def test_create_msg_passing_options_overriding_default(self):
        options = {
            'id': 1234,
        }

        message = ob.create_msg(options=options)
        assert 'id' in message
        assert_equal(message['id'], 1234)
    def test_create_msg_passing_options(self):
        options = {
            'hello': 'world',
        }

        message = ob.create_msg(options=options)
        assert 'hello' in message
        assert_equal(message['hello'], 'world')
Ejemplo n.º 3
0
    def test_create_msg_passing_options_overriding_default(self):
        options = {"id": 1234}

        message = ob.create_msg(options=options)
        assert "id" in message
        assert_equal(message["id"], 1234)
Ejemplo n.º 4
0
    def test_create_msg_passing_options(self):
        options = {"hello": "world"}

        message = ob.create_msg(options=options)
        assert "hello" in message
        assert_equal(message["hello"], "world")
Ejemplo n.º 5
0
    def test_create_msg_incrementing_message_id(self):
        m1 = ob.create_msg()
        m2 = ob.create_msg()

        assert_equal(m1["message-id"], 0)
        assert_equal(m2["message-id"], 1)
Ejemplo n.º 6
0
 def test_create_msg(self):
     message = ob.create_msg()
     assert_equal(type(message), dict)
     assert_equal(message["id"], self.public_id)
     assert_equal(message["message-id"], 0)
    def test_create_msg_incrementing_message_id(self):
        m1 = ob.create_msg()
        m2 = ob.create_msg()

        assert_equal(m1['message-id'], 0)
        assert_equal(m2['message-id'], 1)
 def test_create_msg(self):
     message = ob.create_msg()
     assert_equal(type(message), dict)
     assert_equal(message['id'], self.public_id)
     assert_equal(message['message-id'], 0)