예제 #1
0
def test_session_storage_delete():
    session = SessionStorage()
    with pytest.raises(NotImplementedError):
        session.delete('s')

    with pytest.raises(NotImplementedError):
        del session['s']
예제 #2
0
def test_session_storage_delete():
    session = SessionStorage()
    with pytest.raises(NotImplementedError):
        session.delete('s')

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