Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 6
0
def main():
    stuff = sys.stdin.read()
    text_to_clipboards(stuff)
Exemplo n.º 7
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