File: test_history.doctest

package info (click to toggle)
python-mechanize 1%3A0.4.10%2Bds-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,316 kB
  • sloc: python: 16,656; makefile: 11; sh: 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()