Ejemplo n.º 1
0
def test_session_storage_delete():
    session = SessionStorage()
    with pytest.raises(NotImplementedError):
        session.delete('s')

    with pytest.raises(NotImplementedError):
        del session['s']
Ejemplo n.º 2
0
def test_session_storage_delete():
    session = SessionStorage()
    with pytest.raises(NotImplementedError):
        session.delete('s')

    with pytest.raises(NotImplementedError):
        del session['s']
Ejemplo n.º 3
0
def test_session_storage_set():
    session = SessionStorage()
    with pytest.raises(NotImplementedError):
        session.set('s', {})
    with pytest.raises(NotImplementedError):
        session['s'] = {}
Ejemplo n.º 4
0
def test_session_storage_delete():
    session = SessionStorage()
    session.delete('s')
Ejemplo n.º 5
0
def test_session_storage_set():
    session = SessionStorage()
    session.set('s', {})
Ejemplo n.º 6
0
def test_session_storage_get():
    session = SessionStorage()
    session.get('s')
Ejemplo n.º 7
0
def test_session_storage_set():
    session = SessionStorage()
    with pytest.raises(NotImplementedError):
        session.set('s', {})
    with pytest.raises(NotImplementedError):
        session['s'] = {}
Ejemplo n.º 8
0
def test_session_storage_get():
    session = SessionStorage()
    with pytest.raises(NotImplementedError):
        session.get("s")
Ejemplo n.º 9
0
def test_session_storage_get():
    session = SessionStorage()
    with pytest.raises(NotImplementedError):
        session.get('s')