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