예제 #1
0
def test_delete_with_space_and_wildcard_in_channel_name(event_loop):
    pubnub = PubNubAsyncio(mocked_config_copy(), custom_event_loop=event_loop)

    res = yield from pubnub.delete_messages().channel("my-ch- |.* $").start(
        123).end(456).future()

    if res.status.is_error():
        raise AssertionError()
예제 #2
0
def test_success(event_loop):
    pubnub = PubNubAsyncio(mocked_config_copy(), custom_event_loop=event_loop)

    res = yield from pubnub.delete_messages().channel("my-ch").start(123).end(
        456).future()

    if res.status.is_error():
        raise AssertionError()