def test_no_history(): hist = cmdhistory.History() assert hist.history == []
def test_history(): hist = cmdhistory.History(history=HISTORY) assert hist.history == HISTORY
def hist(): return cmdhistory.History(history=HISTORY)