Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
martinrusev committed Jul 10, 2015
1 parent de236a6 commit 61513c9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
3 changes: 3 additions & 0 deletions dev_requirements.txt
@@ -0,0 +1,3 @@
nose
django
redis
11 changes: 10 additions & 1 deletion tests/tests.py
@@ -1,7 +1,7 @@
from redis_sessions.session import SessionStore
from redis_sessions import settings
import time
from nose.tools import eq_
from nose.tools import eq_, assert_false


## Dev
Expand All @@ -18,6 +18,15 @@ def test_modify_and_keys():
eq_(redis_session['test'], 'test_me')



def test_session_load_does_not_create_record():
session = SessionStore('someunknownkey')
session.load()

eq_(redis_session.exists(redis_session.session_key), False)



def test_save_and_delete():
redis_session['key'] = 'value'
redis_session.save()
Expand Down

0 comments on commit 61513c9

Please sign in to comment.