Django 1.4 first session save lost data

fixes #477
This commit is contained in:
Ross Lawley
2012-05-09 12:00:05 +01:00
parent 97c5b957dd
commit f48af8db3b
3 changed files with 7 additions and 1 deletions

View File

@@ -103,3 +103,8 @@ class MongoDBSessionTest(SessionTestsMixin, unittest.TestCase):
MongoSession.drop_collection()
super(MongoDBSessionTest, self).setUp()
def test_first_save(self):
session = SessionStore()
session['test'] = True
session.save()
self.assertTrue('test' in session)