r46918 - Update after Amber's quick review.
adiroiban-TA+aISz0psMTMxyoc4vAAJOcrHinNvQL0E9HWUfgJXw@public.gmane.org
| Newsgroups | gmane.comp.python.twisted.commits |
|---|---|
| Message-ID | <[email protected]> |
Author: adiroiban
Date: Sat Mar 5 06:19:05 2016
New Revision: 46918
Modified:
branches/http-session-id-type-8215/twisted/web/server.py
branches/http-session-id-type-8215/twisted/web/test/test_web.py
Log:
Update after Amber's quick review.
Modified: branches/http-session-id-type-8215/twisted/web/server.py
==============================================================================
--- branches/http-session-id-type-8215/twisted/web/server.py (original)
+++ branches/http-session-id-type-8215/twisted/web/server.py Sat Mar 5 06:19:05 2016
@@ -692,7 +692,7 @@
@param uid: Unique ID of the session.
@type uid: L{bytes}.
- @raise: KeyError if the session is not found.
+ @raise: L{KeyError} if the session is not found.
"""
return self.sessions[uid]
Modified: branches/http-session-id-type-8215/twisted/web/test/test_web.py
==============================================================================
--- branches/http-session-id-type-8215/twisted/web/test/test_web.py (original)
+++ branches/http-session-id-type-8215/twisted/web/test/test_web.py Sat Mar 5 06:19:05 2016
@@ -126,7 +126,8 @@
def test_makeSession(self):
"""
- It generates a new C{Session} instance with an uid of type L{bytes}.
+ L{site.getSession} generates a new C{Session} instance with an uid of
+ type L{bytes}.
"""
site = server.Site(resource.Resource())
session = self.getAutoExpiringSession(site)
@@ -137,7 +138,8 @@
def test_getSessionExistent(self):
"""
- It gets a previously generated session, by its unique ID.
+ L{site.getSession} gets a previously generated session, by its unique
+ ID.
"""
site = server.Site(resource.Resource())
createdSession = self.getAutoExpiringSession(site)
@@ -149,7 +151,7 @@
def test_getSessionNonExistent(self):
"""
- It raises a KeyError if the session is not found.
+ L{site.getSession} raises a L{KeyError} if the session is not found.
"""
site = server.Site(resource.Resource())