예제 #1
0
def test_delete_non_exist():
    ledis = Ledis()
    ledis.delete("key_not_found")
예제 #2
0
def test_delete_str():
    ledis = Ledis()
    ledis.set("str_type", "hello")
    ledis.delete("str_type")
    assert "str_type" not in ledis.storage
예제 #3
0
def test_delete_set():
    ledis = Ledis()
    ledis.sadd("set_type", 1, 2, 3)
    ledis.delete("set_type")
    assert "set_type" not in ledis.storage