'Request a page that modifies the session'

def test_session_modifying_view(self):

    try:
        self.client.session[u'tobacconist']
        self.fail(u"Shouldn't    have    a    session    value")
    except KeyError:
        pass
    from django.contrib.sessions.models import Session
    response = self.client.post(u'/test_client/session_view/')
    self.assertEqual(self.client.session[u'tobacconist'], u'hovercraft')
