예제 #1
0
def test_message_acknowledgement_not_coroutine_typeerror(acknowledgement):
    """Test TypeError is raised if acknowledgement isn't a coroutine."""
    app = Application('testing')
    with pytest.raises(TypeError):
        app.message_acknowledgement(acknowledgement)
예제 #2
0
def test_message_acknowledgement_not_coroutine_typeerror(
        acknowledgement, ASYNC_QUEUE):
    """Test TypeError is raised if acknowledgement isn't a coroutine."""
    app = Application('testing', settings={'ASYNC_QUEUE': ASYNC_QUEUE})
    with pytest.raises(TypeError):
        app.message_acknowledgement(acknowledgement)