示例#1
0
def main():
    session_id, real_email = get_session_id_and_real_email()
    email = create_temp_email(session_id, real_email)

    text_to_clipboards(email)
    print '# copied to the clipboard'
    print email
示例#2
0
def main():
    session_id, real_email = get_session_id_and_real_email()
    email = create_temp_email(session_id, real_email)

    text_to_clipboards(email)
    print '# copied to the clipboard'
    print email
示例#3
0
def main():
    cnt = 0
    with open('movies.txt') as f:
        for title in f:
            title = title.rstrip('\n')
            text_to_clipboards(title)

            delete()
            paste()
            add()
            cnt += 1

    print cnt
示例#4
0
def main():
    cnt = 0
    with open("movies.txt") as f:
        for title in f:
            title = title.rstrip("\n")
            text_to_clipboards(title)

            delete()
            paste()
            add()
            cnt += 1

    print cnt
示例#5
0
def test_text_to_clipboards():
    text = 'jabbapylib cb test'
    cb.text_to_clipboards(text)
    assert cb.read_primary() == text
    assert cb.read_clipboard() == text
示例#6
0
def main():
    stuff = sys.stdin.read()
    text_to_clipboards(stuff)
def test_text_to_clipboards():
    text = 'jabbapylib cb test'
    cb.text_to_clipboards(text)
    assert cb.read_primary() == text
    assert cb.read_clipboard() == text