Skip to content

Commit 85aa1ec

Browse files
committed
Tweaked a test to prevent failures when looking for a specific string in line-wrapped text.
- Legacy-Id: 15397
1 parent e533180 commit 85aa1ec

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

ietf/doc/tests_ballot.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
from ietf.iesg.models import TelechatDate
1818
from ietf.person.models import Person, PersonalApiKey
1919
from ietf.person.factories import PersonFactory
20-
from ietf.utils.test_utils import TestCase, unicontent
20+
from ietf.utils.test_utils import TestCase, unicontent, login_testing_unauthorized
2121
from ietf.utils.mail import outbox, empty_outbox
22-
from ietf.utils.test_utils import login_testing_unauthorized
22+
from ietf.utils.text import unwrap
2323

2424

2525
class EditPositionTests(TestCase):
@@ -467,7 +467,7 @@ def test_edit_approval_text(self):
467467
r = self.client.post(url, dict(regenerate_approval_text="1"))
468468
self.assertEqual(r.status_code, 200)
469469
draft = Document.objects.get(name=draft.name)
470-
self.assertTrue("NOT be published" in draft.latest_event(WriteupDocEvent, type="changed_ballot_approval_text").text)
470+
self.assertIn("NOT be published", unwrap(draft.latest_event(WriteupDocEvent, type="changed_ballot_approval_text").text))
471471

472472
# test regenerate when it's a conflict review
473473
draft.group = Group.objects.get(type="individ")

0 commit comments

Comments
 (0)