Beispiel #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
Beispiel #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
Beispiel #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
Beispiel #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
Beispiel #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
Beispiel #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