예제 #1
0
def test_prepand_append():
    client = MockMemcacheClient()

    client.set(b"k", "1")
    client.append(b"k", "a")
    client.prepend(b"k", "p")
    assert client.get(b"k") == b"p1a"
예제 #2
0
def test_prepand_append():
    client = MockMemcacheClient()

    client.set(b"k", '1')
    client.append(b"k", 'a')
    client.prepend(b"k", 'p')
    assert client.get(b"k") == b'p1a'