Verified Commit 35846c87 authored by Sébastiaan Versteeg's avatar Sébastiaan Versteeg
Browse files

Adjust tests of registrations to match

parent dab9444f
"""The services defined by the registrations package"""
import string
import unicodedata
from datetime import timedelta
from django.conf import settings
from django.contrib.auth import get_user_model
......
......@@ -403,7 +403,7 @@ class ServicesTest(TestCase):
self.e3.length = Entry.MEMBERSHIP_YEAR
membership3 = services._create_membership_from_entry(self.e3)
self.assertEqual(membership3.since,
existing_membership.until + timedelta(days=1))
existing_membership.until)
self.assertEqual(membership3.until, timezone.datetime(
year=2017, month=9, day=1).date())
self.assertEqual(membership3.user, self.e3.member)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment