def test_execute_cmd():
    bak_primary = cb.read_primary()
    #
    text = 'arbitrary text'
    cb.to_primary(text)
    assert cb.read_primary() == text
    process.execute_cmd('xsel -pc')    # clear primary
    assert cb.read_primary() == ''
    #
    cb.to_primary(bak_primary)
Beispiel #2
0
def test_execute_cmd():
    bak_primary = cb.read_primary()
    #
    text = 'arbitrary text'
    cb.to_primary(text)
    assert cb.read_primary() == text
    process.execute_cmd('xsel -pc')  # clear primary
    assert cb.read_primary() == ''
    #
    cb.to_primary(bak_primary)
Beispiel #3
0
def clear_clipboard():
    """Clear clipboard."""
    process.execute_cmd('xsel -bc')
Beispiel #4
0
def clear_primary():
    """Clear primary."""
    process.execute_cmd('xsel -pc')
Beispiel #5
0
def clear_clipboard():
    """Clear clipboard."""
    process.execute_cmd('xsel -bc')
Beispiel #6
0
def clear_primary():
    """Clear primary."""
    process.execute_cmd('xsel -pc')