|
18 | 18 | from ietf.group.models import Person |
19 | 19 | from ietf.iesg.models import TelechatDate |
20 | 20 | from ietf.name.models import StreamName |
21 | | -from ietf.utils.test_utils import TestCase, unicontent |
| 21 | +from ietf.utils.test_utils import TestCase |
22 | 22 | from ietf.utils.mail import outbox, empty_outbox |
23 | 23 | from ietf.utils.test_utils import login_testing_unauthorized |
24 | 24 |
|
@@ -265,7 +265,7 @@ def test_edit_telechat_date(self): |
265 | 265 | def approve_test_helper(self,approve_type): |
266 | 266 |
|
267 | 267 | doc = Document.objects.get(name='conflict-review-imaginary-irtf-submission') |
268 | | - url = urlreverse('ietf.doc.views_conflict_review.approve',kwargs=dict(name=doc.name)) |
| 268 | + url = urlreverse('ietf.doc.views_conflict_review.approve_conflict_review',kwargs=dict(name=doc.name)) |
269 | 269 |
|
270 | 270 | login_testing_unauthorized(self, "secretary", url) |
271 | 271 |
|
@@ -297,12 +297,13 @@ def approve_test_helper(self,approve_type): |
297 | 297 | self.assertIn('irtf-chair', outbox[0]['To']) |
298 | 298 | self.assertIn('ietf-announce@', outbox[0]['Cc']) |
299 | 299 | self.assertIn('iana@', outbox[0]['Cc']) |
| 300 | + |
300 | 301 | if approve_type == 'appr-noprob': |
301 | | - self.assertContains(r, 'IESG has no problem') |
| 302 | + self.assertIn( 'IESG has no problem', ''.join(wrap(outbox[0].get_payload(), 2**16))) |
302 | 303 | else: |
303 | | - self.assertContains(r, 'NOT be published') |
304 | | - |
305 | | - |
| 304 | + self.assertIn( 'NOT be published', ''.join(wrap(outbox[0].get_payload(), 2**16))) |
| 305 | + |
| 306 | + |
306 | 307 | def test_approve_reqnopub(self): |
307 | 308 | self.approve_test_helper('appr-reqnopub') |
308 | 309 |
|
|
0 commit comments