'Request a page that modifies the session'

def test_session_modifying_view(self):

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