Exemplo n.º 1
0
def test_delete():
    client = MockMemcacheClient()

    client.add(b"k", 2)
    assert client.get(b"k") == 2

    client.delete(b"k")
    assert client.get(b"k") is None
Exemplo n.º 2
0
def test_delete():
    client = MockMemcacheClient()

    client.add(b"k", 2)
    assert client.get(b"k") == 2

    client.delete(b"k")
    assert client.get(b"k") is None
Exemplo n.º 3
0
def test_delete():
    client = MockMemcacheClient()

    client.add(b"k", 2)
    tools.assert_equal(client.get(b"k"), 2)

    client.delete(b"k")
    tools.assert_equal(client.get(b"k"), None)
Exemplo n.º 4
0
def test_delete():
    client = MockMemcacheClient()

    client.add("k", 2)
    tools.assert_equal(client.get("k"), 2)

    client.delete("k")
    tools.assert_equal(client.get("k"), None)