File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717from ietf .iesg .models import TelechatDate
1818from ietf .person .models import Person , PersonalApiKey
1919from 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
2121from 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
2525class 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" )
You can’t perform that action at this time.
0 commit comments