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)
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)
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)
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)