'L{site.getSession} raises a L{KeyError} if the session is not found.'

def test_getSessionNonExistent(self):

    site = server.Site(resource.Resource())
    self.assertRaises(KeyError, site.getSession, 'no-such-uid')
