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