示例#1
0
def test_no_history():
    hist = cmdhistory.History()
    assert hist.history == []
示例#2
0
def test_history():
    hist = cmdhistory.History(history=HISTORY)
    assert hist.history == HISTORY
示例#3
0
def hist():
    return cmdhistory.History(history=HISTORY)