Skip to content

Commit 11f3efd

Browse files
committed
Add test of ReviewDecisions
- Legacy-Id: 6380
1 parent 5fe7ce6 commit 11f3efd

1 file changed

Lines changed: 17 additions & 1 deletion

File tree

ietf/iesg/tests.py

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,28 @@
77
from pyquery import PyQuery
88

99
from ietf.utils.test_data import make_test_data
10-
from ietf.doc.models import Document, TelechatDocEvent, State
10+
from ietf.doc.models import Document, DocEvent, TelechatDocEvent, State
1111
from ietf.person.models import Person
1212
from ietf.group.models import Group
1313
from ietf.iesg.models import *
1414
from ietf.utils.test_utils import SimpleUrlTestCase, RealDatabaseTest, canonicalize_feed, login_testing_unauthorized
1515

16+
class ReviewDecisionsTests(django.test.TestCase):
17+
def test_review_decisions(self):
18+
draft = make_test_data()
19+
20+
e = DocEvent(type="iesg_approved")
21+
e.doc = draft
22+
e.by = Person.objects.get(name="Aread Irector")
23+
e.save()
24+
25+
url = urlreverse('ietf.iesg.views.review_decisions')
26+
27+
r = self.client.get(url)
28+
self.assertEquals(r.status_code, 200)
29+
self.assertTrue(draft.name in r.content)
30+
31+
1632
class IESGAgendaTests(django.test.TestCase):
1733
def test_feed(self):
1834
draft = make_test_data()

0 commit comments

Comments
 (0)