Skip to content

Commit b881c64

Browse files
committed
Fix bug in test of doc.note
- Legacy-Id: 5291
1 parent 024e98d commit b881c64

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

ietf/idrfc/testsREDESIGN.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1339,13 +1339,11 @@ def test_doc_change_iesg_note(self):
13391339
q = PyQuery(r.content)
13401340
self.assertEquals(len(q('form.edit-iesg-note')),1)
13411341

1342-
# No validation code to test
1343-
1344-
# post - testing that the munge code exists in note.clean...
1345-
r = self.client.post(url,dict(note='ZpyQFGmA\nZpyQFGmA'))
1342+
# post
1343+
r = self.client.post(url,dict(note='ZpyQFGmA\r\nZpyQFGmA'))
13461344
self.assertEquals(r.status_code,302)
13471345
self.doc = Document.objects.get(name=self.docname)
1348-
self.assertEquals(self.doc.note,'ZpyQFGmA<br>ZpyQFGmA')
1346+
self.assertEquals(self.doc.note,'ZpyQFGmA\nZpyQFGmA')
13491347
self.assertTrue('ZpyQFGmA' in self.doc.latest_event(DocEvent,type='added_comment').desc)
13501348

13511349
def test_doc_change_ad(self):

0 commit comments

Comments
 (0)