|
1 | | -# Copyright The IETF Trust 2011-2022, All Rights Reserved |
| 1 | +# Copyright The IETF Trust 2011-2023, All Rights Reserved |
2 | 2 | # -*- coding: utf-8 -*- |
3 | 3 |
|
4 | 4 |
|
@@ -495,6 +495,25 @@ def test_submit_new_wg_as_author(self): |
495 | 495 | self.assertEqual(r.status_code, 200) |
496 | 496 | self.assertContains(r, 'The submission is pending approval by the group chairs.') |
497 | 497 |
|
| 498 | + def test_submit_new_wg_as_author_bad_submitter(self): |
| 499 | + # submit new -> supply submitter info -> approve |
| 500 | + mars = GroupFactory(type_id='wg', acronym='mars') |
| 501 | + draft = WgDraftFactory(group=mars) |
| 502 | + setup_default_community_list_for_group(draft.group) |
| 503 | + |
| 504 | + name = "draft-ietf-mars-testing-tests" |
| 505 | + rev = "00" |
| 506 | + group = "mars" |
| 507 | + |
| 508 | + status_url, author = self.do_submission(name, rev, group) |
| 509 | + username = author.user.email |
| 510 | + |
| 511 | + # supply submitter info with MIME-encoded name |
| 512 | + self.client.login(username=username, password=username+'+password') # log in as the author |
| 513 | + r = self.supply_extra_metadata(name, status_url, '=?utf-8?q?Peter_Christen_Asbj=C3=B8rnsen?=', author.email().address.lower(), replaces=[]) |
| 514 | + self.assertEqual(r.status_code, 200) |
| 515 | + self.assertContains(r, 'appears to be a MIME-encoded string') |
| 516 | + |
498 | 517 | def submit_new_concluded_wg_as_author(self, group_state_id='conclude'): |
499 | 518 | """A new concluded WG submission by a logged-in author needs AD approval""" |
500 | 519 | mars = GroupFactory(type_id='wg', acronym='mars', state_id=group_state_id) |
|
0 commit comments