@pytest.mark.parametrize('text, expected', [('foo|bar', 'foo|ar'), ('foobar|', 'foobar|'), ('|foobar', '|oobar'), ('f<oo>bar', 'f|bar')])
def test_rl_delete_char(text, expected, lineedit, bridge):
 lineedit.set_aug_text(text)
 bridge.rl_delete_char()
 assert (lineedit.aug_text() == expected)

@ pytest . mark . parametrize ( 'text, expected' , [ ( 'foo|bar' , 'foo|ar' ) , ( 'foobar|' , 'foobar|' ) , ( '|foobar' , '|oobar' ) , ( 'f<oo>bar' , 'f|bar' ) ] ) def test_rl_delete_char ( text , expected , lineedit , bridge ) : lineedit . set_aug_text ( text ) bridge . rl_delete_char ( ) assert ( lineedit . aug_text ( ) == expected )
test rl_delete_char .