'Loading an unknown session key does not create a session record.
Creating session records on load is a DOS vulnerability.'

def test_session_load_does_not_create_record(self):

    if (self.backend is CookieSession):
        raise unittest.SkipTest("Cookie    backend    doesn't    have    an    external    store    to    create    records    in.")
    session = self.backend('someunknownkey')
    session.load()
    self.assertFalse(session.exists(session.session_key))
    self.assertNotEqual(session.session_key, 'someunknownkey')
