def test_tenant_is_not_expired(tenant, now): tenant.expires = '2014-01-02' with freeze_time(now): expired = update_expiry.tenant_at_next_step_date(tenant) assert not expired
def test_tenant_at_next_step_date(tenant, now): tenant.expires = '2013-12-31' with freeze_time(now): expired = update_expiry.tenant_at_next_step_date(tenant) assert expired