@pytest.mark.parametrize('text, deleted, rest', [('test delete|foobar', 'delete', 'test |foobar'), ('test delete |foobar', 'delete ', 'test |foobar'), ('open -t github.com/foo/bar  |', 'bar  ', 'open -t github.com/foo/|'), ('open -t |github.com/foo/bar', '-t ', 'open |github.com/foo/bar'), ('open foo/bar.baz|', 'bar.baz', 'open foo/|')])
def test_rl_unix_filename_rubout(lineedit, bridge, text, deleted, rest):
 _validate_deletion(lineedit, bridge, bridge.rl_unix_filename_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  |' , 'bar  ' , 'open -t github.com/foo/|' ) , ( 'open -t |github.com/foo/bar' , '-t ' , 'open |github.com/foo/bar' ) , ( 'open foo/bar.baz|' , 'bar.baz' , 'open foo/|' ) ] ) def test_rl_unix_filename_rubout ( lineedit , bridge , text , deleted , rest ) : _validate_deletion ( lineedit , bridge , bridge . rl_unix_filename_rubout , text , deleted , rest )
delete filename segment and see if it comes back with yank .