def test_start_no_items(hist):
 with pytest.raises(cmdhistory.HistoryEmptyError):
  hist.start('k')
 assert (not hist._tmphist)

def test_start_no_items ( hist ) : with pytest . raises ( cmdhistory . HistoryEmptyError ) : hist . start ( 'k' ) assert ( not hist . _tmphist )
test start with no matching text .