def test_start_with_text(hist):
 hist.start('f')
 assert ('first' in hist._tmphist)
 assert ('fourth' in hist._tmphist)
 assert ('second' not in hist._tmphist)

def test_start_with_text ( hist ) : hist . start ( 'f' ) assert ( 'first' in hist . _tmphist ) assert ( 'fourth' in hist . _tmphist ) assert ( 'second' not in hist . _tmphist )
test start with given text .