Beispiel #1
0
 def test_outbound_with_data(self, response, session):
     response.request.session['Hello'] = "Chad"
     outbound(response)
     assert len(Session.objects()) == 1
     assert pickle.loads(Session.objects(session_key="a" * 64)[0].data) == {
         'session_key': 'a' * 64,
         'Hello': "Chad"
         }
Beispiel #2
0
 def test_outbound(self, response, session):
     outbound(response)
     assert response.cookie['session_key'].value == "a" * 64