Ejemplo n.º 1
0
def test_raises_timeout():
    with pytest.raises(zget.TimeoutException):
        zget.get("as", "", timeout=1)

    with pytest.raises(zget.TimeoutException):
        zget.put("asd", timeout=1)
Ejemplo n.º 2
0
def test_raises_interface():
    with pytest.raises(ValueError):
        zget.put("as", interface="asd")