@pytest.mark.parametrize('text, deleted, rest', [('test delete|foobar', 'delete', 'test |foobar'), ('test delete |foobar', 'delete ', 'test |foobar'), ('open -t github.com/foo/bar  |', 'github.com/foo/bar  ', 'open -t |'), ('open -t |github.com/foo/bar', '-t ', 'open |github.com/foo/bar'), fixme(('test del<ete>foobar', 'delete', 'test |foobar')), ('test del<ete >foobar', 'del', 'test |ete foobar')])
def test_rl_unix_word_rubout(lineedit, bridge, text, deleted, rest):
 _validate_deletion(lineedit, bridge, bridge.rl_unix_word_rubout, text, deleted, rest)

@ pytest . mark . parametrize ( 'text, deleted, rest' , [ ( 'test delete|foobar' , 'delete' , 'test |foobar' ) , ( 'test delete |foobar' , 'delete ' , 'test |foobar' ) , ( 'open -t github.com/foo/bar  |' , 'github.com/foo/bar  ' , 'open -t |' ) , ( 'open -t |github.com/foo/bar' , '-t ' , 'open |github.com/foo/bar' ) , fixme ( ( 'test del<ete>foobar' , 'delete' , 'test |foobar' ) ) , ( 'test del<ete >foobar' , 'del' , 'test |ete foobar' ) ] ) def test_rl_unix_word_rubout ( lineedit , bridge , text , deleted , rest ) : _validate_deletion ( lineedit , bridge , bridge . rl_unix_word_rubout , text , deleted , rest )
delete to word beginning and see if it comes back with yank .