test_imaplib.py 364 Bytes
Newer Older
1
import imaplib
2
import time
3

Piers Lauder's avatar
Piers Lauder committed
4 5 6
# We can check only that it successfully produces a result,
# not the correctness of the result itself, since the result
# depends on the timezone the machine is in.
7

Piers Lauder's avatar
Piers Lauder committed
8
timevalues = [2000000000, 2000000000.0, time.localtime(2000000000),
9
              '"18-May-2033 05:33:20 +0200"']
10 11

for t in timevalues:
Piers Lauder's avatar
Piers Lauder committed
12
    imaplib.Time2Internaldate(t)