Пример #1
0
def C():
    accum = 0
    cur_year = 1970

    while True:
        next_year = now().year
        accum += next_year - cur_year
        yield accum
        cur_year = next_year
Пример #2
0
def C():
    accum = 0
    cur_year = 1970

    while True:
        next_year = now().year
        accum += next_year - cur_year
        yield accum
        cur_year = next_year
Пример #3
0
def B():
    return A() + now().year - 1970
Пример #4
0
def C():
    if now() < datetime(2001, 1, 1):
        raise TestException("Prior to 2001")
    return True
Пример #5
0
def X():
    return A() + B() + now().day
Пример #6
0
def X():
    return A() + B() + now().day
Пример #7
0
def B():
    return A() + now().year - 1970
Пример #8
0
def C():
    if now() < datetime(2001, 1, 1):
        raise TestException("Prior to 2001")
    return True