Fix some test errors

- Legacy-Id: 6795
This commit is contained in:
Ole Laursen 2013-12-05 15:30:17 +00:00
parent 4250a95556
commit 5f002cf0ac
2 changed files with 2 additions and 14 deletions

View file

@ -446,7 +446,7 @@ class ExpireIDsTests(TestCase):
Meeting.objects.create(number="123",
type=MeetingTypeName.objects.get(slug="ietf"),
date=date.today())
date=datetime.date.today())
second_cut_off = Meeting.get_second_cut_off()
ietf_monday = Meeting.get_ietf_monday()

View file

@ -6,27 +6,15 @@ from django.core.urlresolvers import reverse as urlreverse
from StringIO import StringIO
from pyquery import PyQuery
from ietf.utils.test_utils import SimpleUrlTestCase, canonicalize_feed, canonicalize_sitemap, login_testing_unauthorized
from ietf.utils.test_utils import TestCase, login_testing_unauthorized
from ietf.utils.test_data import make_test_data
from ietf.utils.mail import outbox
from ietf.utils import TestCase
from ietf.liaisons.models import LiaisonStatement, LiaisonStatementPurposeName
from ietf.person.models import Person, Email
from ietf.group.models import Group, Role
from ietf.liaisons.mails import send_sdo_reminder, possibly_send_deadline_reminder
class LiaisonsUrlTestCase(SimpleUrlTestCase):
def testUrls(self):
self.doTestUrls(__file__)
def doCanonicalize(self, url, content):
if url.startswith("/feed/"):
return canonicalize_feed(content)
elif url == "/sitemap-liaison.xml":
return canonicalize_sitemap(content)
else:
return content
def make_liaison_models():
sdo = Group.objects.create(
name="United League of Marsmen",