#
####
-"""
+r"""
Here's a sample session to show how to use this module.
At the moment, this is the only documentation.
>>> C["oreo"] = "doublestuff"
>>> C["oreo"]["path"] = "/"
>>> print C
- Set-Cookie: oreo="doublestuff"; Path=/;
+ Set-Cookie: oreo=doublestuff; Path=/;
Each dictionary element has a 'value' attribute, which gives you
back the value associated with the key.
fact, this simply returns a SmartCookie.
>>> C = Cookie.Cookie()
- >>> C.__class__
- <class Cookie.SmartCookie at 99f88>
+ >>> print C.__class__.__name__
+ SmartCookie
Finis.
#
###########################################################
+def _test():
+ import doctest, Cookie
+ return doctest.testmod(Cookie)
+
+if __name__ == "__main__":
+ _test()
#Local Variables: