Debian Codegraph @

test/test_history.doctest

raw
1 >>> from mechanize import History
2
3 If nothing has been added, .close should work.
4
5 >>> history = History()
6 >>> history.close()
7
8 Under some circumstances response can be None, in that case
9 this method should not raise an exception.
10
11 >>> history.add(None, None)
12 >>> history.close()