def copy_dev_box_hostname(sysTrayIcon): hostname = dev_box.get_hostname() if hostname is not None: clipboard.copy_text(hostname)
def test_paste_text(): # first ensure there's something on the clipboard: clipboard.copy_text('test for paste') assert clipboard.paste_text() == 'test for paste'
def test_copy_text(): clipboard.copy_text("foo")