def test_registryiterseek_backward_empty_seek(seek_to):
    from binlog.registry import RegistryIterSeek

    r = RegistryIterSeek(Registry(), direction=Direction.B)
    r.seek(seek_to)
    assert not list(r)
def test_registryiterseek_forward_empty_unset():
    from binlog.registry import RegistryIterSeek

    r = RegistryIterSeek(Registry())
    assert not list(r)
예제 #3
0
def test_registry_initialization():
    from binlog.registry import Registry

    r = Registry()

    assert r.acked == list()