File: test_history.doctest

package info (click to toggle)
python-mechanize 1%3A0.2.5-3
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch, wheezy
  • size: 2,056 kB
  • ctags: 3,377
  • sloc: python: 23,140; makefile: 4
file content (12 lines) | stat: -rw-r--r-- 280 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
>>> from mechanize import History

If nothing has been added, .close should work.

>>> history = History()
>>> history.close()

Under some circumstances response can be None, in that case
this method should not raise an exception.

>>> history.add(None, None)
>>> history.close()