Beispiel #1
0
def test_monthly_not_in_scope_notstarted():
    now = datetime.datetime.now()
    start, end = month_start_end(now+datetime.timedelta(weeks=10))
    t = KeyholderfeeFactory(start=start, end=end)
    assert not t.in_timescope(now)
Beispiel #2
0
def test_monthly_not_in_scope_notstarted():
    now = datetime.datetime.now()
    start, end = month_start_end(now + datetime.timedelta(weeks=10))
    t = KeyholderfeeFactory(start=start, end=end)
    assert not t.in_timescope(now)
Beispiel #3
0
def test_monthly_in_scope_without_end():
    now = datetime.datetime.now()
    start, end = month_start_end(now-datetime.timedelta(weeks=6))
    end = None
    t = KeyholderfeeFactory(start=start, end=end)
    assert t.in_timescope(now)
Beispiel #4
0
def test_monthly_in_scope_without_end():
    now = datetime.datetime.now()
    start, end = month_start_end(now - datetime.timedelta(weeks=6))
    end = None
    t = KeyholderfeeFactory(start=start, end=end)
    assert t.in_timescope(now)