test: align tests with new shepherd writeup template. (#3838)

This commit is contained in:
Robert Sparks 2022-04-19 11:44:59 -05:00 committed by GitHub
parent f8c06fa5cf
commit 87fac4e12a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1215,7 +1215,7 @@ class IndividualInfoFormsTests(TestCase):
r = self.client.post(url,dict(txt=test_file,reset_text="1"))
self.assertEqual(r.status_code, 200)
q = PyQuery(r.content)
self.assertTrue(q('textarea')[0].text.strip().startswith("As required by RFC 4858"))
self.assertTrue(q('textarea')[0].text.strip().startswith("# Document Shepherd Writeup")) # TODO: This is a poor test of whether the reset did anything
def test_edit_doc_extresources(self):
url = urlreverse('ietf.doc.views_draft.edit_doc_extresources', kwargs=dict(name=self.docname))
@ -1928,4 +1928,4 @@ class MoreReplacesTests(TestCase):
self.assertEqual(r.status_code,302)
old_doc = Document.objects.get(name=old_doc.name)
self.assertEqual(old_doc.get_state_slug('draft'),'repl')
self.assertEqual(old_doc.get_state_slug('draft-stream-%s'%stream),'repl')
self.assertEqual(old_doc.get_state_slug('draft-stream-%s'%stream),'repl')