@@ -98,7 +98,7 @@ def do_submission(self, name, rev, group=None, formats=["txt",]):
9898 self .assertTrue (os .path .exists (settings .IDSUBMIT_IDNITS_BINARY ))
9999
100100 # get
101- url = urlreverse ('submit_upload_submission ' )
101+ url = urlreverse ('ietf.submit.views.upload_submission ' )
102102 r = self .client .get (url )
103103 self .assertEqual (r .status_code , 200 )
104104 q = PyQuery (r .content )
@@ -645,12 +645,12 @@ def test_search_for_submission_and_edit_as_secretariat(self):
645645 self .do_submission (name , rev )
646646
647647 # search status page
648- r = self .client .get (urlreverse ("submit_search_submission " ))
648+ r = self .client .get (urlreverse ("ietf.submit.views.search_submission " ))
649649 self .assertEqual (r .status_code , 200 )
650650 self .assertTrue ("submission status" in unicontent (r ))
651651
652652 # search
653- r = self .client .post (urlreverse ("submit_search_submission " ), dict (name = name ))
653+ r = self .client .post (urlreverse ("ietf.submit.views.search_submission " ), dict (name = name ))
654654 self .assertEqual (r .status_code , 302 )
655655 unprivileged_status_url = r ['Location' ]
656656
@@ -690,7 +690,7 @@ def test_request_full_url(self):
690690 self .do_submission (name , rev )
691691
692692 submission = Submission .objects .get (name = name )
693- url = urlreverse ('submit_submission_status ' , kwargs = dict (submission_id = submission .pk ))
693+ url = urlreverse ('ietf.submit.views.submission_status ' , kwargs = dict (submission_id = submission .pk ))
694694
695695 # check we got request full URL button
696696 r = self .client .get (url )
@@ -762,17 +762,17 @@ def test_expire_submissions(self):
762762 self .assertEqual (s .state_id , "cancel" )
763763
764764 def test_help_pages (self ):
765- r = self .client .get (urlreverse ("submit_note_well " ))
765+ r = self .client .get (urlreverse ("ietf.submit.views.note_well " ))
766766 self .assertEquals (r .status_code , 200 )
767767
768- r = self .client .get (urlreverse ("submit_tool_instructions " ))
768+ r = self .client .get (urlreverse ("ietf.submit.views.tool_instructions " ))
769769 self .assertEquals (r .status_code , 200 )
770770
771771 def test_blackout_access (self ):
772772 make_test_data ()
773773
774774 # get
775- url = urlreverse ('submit_upload_submission ' )
775+ url = urlreverse ('ietf.submit.views.upload_submission ' )
776776 # set meeting to today so we're in blackout period
777777 meeting = Meeting .get_current_meeting ()
778778 meeting .date = datetime .datetime .utcnow ()
@@ -802,7 +802,7 @@ def submit_bad_file(self, name, formats):
802802 self .assertTrue (os .path .exists (settings .IDSUBMIT_IDNITS_BINARY ))
803803
804804 # get
805- url = urlreverse ('submit_upload_submission ' )
805+ url = urlreverse ('ietf.submit.views.upload_submission ' )
806806 r = self .client .get (url )
807807 self .assertEqual (r .status_code , 200 )
808808 q = PyQuery (r .content )
@@ -850,7 +850,7 @@ class ApprovalsTestCase(TestCase):
850850 def test_approvals (self ):
851851 make_test_data ()
852852
853- url = urlreverse ('submit_approvals ' )
853+ url = urlreverse ('ietf.submit.views.approvals ' )
854854 self .client .login (username = "marschairman" , password = "marschairman+password" )
855855
856856 Preapproval .objects .create (name = "draft-ietf-mars-foo" , by = Person .objects .get (user__username = "marschairman" ))
@@ -881,7 +881,7 @@ def test_approvals(self):
881881 def test_add_preapproval (self ):
882882 make_test_data ()
883883
884- url = urlreverse ('submit_add_preapproval ' )
884+ url = urlreverse ('ietf.submit.views.add_preapproval ' )
885885 login_testing_unauthorized (self , "marschairman" , url )
886886
887887 # get
@@ -908,7 +908,7 @@ def test_cancel_preapproval(self):
908908
909909 preapproval = Preapproval .objects .create (name = "draft-ietf-mars-foo" , by = Person .objects .get (user__username = "marschairman" ))
910910
911- url = urlreverse ('submit_cancel_preapproval ' , kwargs = dict (preapproval_id = preapproval .pk ))
911+ url = urlreverse ('ietf.submit.views.cancel_preapproval ' , kwargs = dict (preapproval_id = preapproval .pk ))
912912 login_testing_unauthorized (self , "marschairman" , url )
913913
914914 # get
@@ -927,7 +927,7 @@ class ManualPostsTestCase(TestCase):
927927 def test_manual_posts (self ):
928928 make_test_data ()
929929
930- url = urlreverse ('submit_manualpost ' )
930+ url = urlreverse ('ietf.submit.views.manualpost ' )
931931 # Secretariat has access
932932 self .client .login (username = "secretary" , password = "secretary+password" )
933933
@@ -949,7 +949,7 @@ def test_manual_posts(self):
949949 self .assertEqual (len (q ('.submissions a:contains("draft-ietf-mars-foo")' )), 1 )
950950 self .assertEqual (len (q ('.submissions a:contains("draft-ietf-mars-bar")' )), 0 )
951951
952- def test_awaiting_draft (self ):
952+ def test_waiting_for_draft (self ):
953953 message_string = """To: somebody@ietf.org
954954From: joe@test.com
955955Date: {}
@@ -970,7 +970,7 @@ def test_awaiting_draft(self):
970970 by = Person .objects .get (name = "(System)" ),
971971 msgtype = "msgin" )
972972
973- url = urlreverse ('submit_manualpost ' )
973+ url = urlreverse ('ietf.submit.views.manualpost ' )
974974 # Secretariat has access
975975 self .client .login (username = "secretary" , password = "secretary+password" )
976976
@@ -979,7 +979,7 @@ def test_awaiting_draft(self):
979979 self .assertEqual (r .status_code , 200 )
980980 q = PyQuery (r .content )
981981
982- self .assertEqual (len (q ('.awaiting -draft a:contains("draft-my-new-draft")' )), 1 )
982+ self .assertEqual (len (q ('.waiting-for -draft a:contains("draft-my-new-draft")' )), 1 )
983983
984984 # Same name should raise an error
985985 with self .assertRaises (Exception ):
@@ -993,7 +993,7 @@ def test_awaiting_draft(self):
993993 msgtype = "msgin" )
994994
995995 # Cancel this one
996- r = self .client .post (urlreverse ("submit_cancel_awaiting_draft_by_hash " ), {
996+ r = self .client .post (urlreverse ("ietf.submit.views.cancel_waiting_for_draft " ), {
997997 "submission_id" : submission .pk ,
998998 "access_token" : submission .access_token (),
999999 })
@@ -1002,7 +1002,7 @@ def test_awaiting_draft(self):
10021002 r = self .client .get (url )
10031003 self .assertEqual (r .status_code , 200 )
10041004 q = PyQuery (r .content )
1005- self .assertEqual (len (q ('.awaiting -draft a:contains("draft-my-new-draft")' )), 0 )
1005+ self .assertEqual (len (q ('.waiting-for -draft a:contains("draft-my-new-draft")' )), 0 )
10061006
10071007 # Should now be able to add it again
10081008 submission , submission_email_event = \
@@ -1016,7 +1016,7 @@ def test_awaiting_draft(self):
10161016 msgtype = "msgin" )
10171017
10181018
1019- def test_awaiting_draft_with_attachment (self ):
1019+ def test_waiting_for_draft_with_attachment (self ):
10201020 frm = "joe@test.com"
10211021
10221022 message_string = """To: somebody@ietf.org
@@ -1052,7 +1052,7 @@ def test_awaiting_draft_with_attachment(self):
10521052 by = Person .objects .get (name = "(System)" ),
10531053 msgtype = "msgin" )
10541054
1055- manualpost_page_url = urlreverse ('submit_manualpost ' )
1055+ manualpost_page_url = urlreverse ('ietf.submit.views.manualpost ' )
10561056 # Secretariat has access
10571057 self .client .login (username = "secretary" , password = "secretary+password" )
10581058
@@ -1135,7 +1135,7 @@ def check_manualpost_page(self, submission, submission_email_event,
11351135 is_secretariat ):
11361136 # get the page listing manual posts
11371137 r , q = self .request_and_parse (the_url )
1138- selector = "#awaiting -draft a#add-submission-email{}:contains('Add email')" . \
1138+ selector = "#waiting-for -draft a#add-submission-email{}:contains('Add email')" . \
11391139 format (submission .pk , submission_name_fragment )
11401140
11411141 if is_secretariat :
@@ -1146,7 +1146,7 @@ def check_manualpost_page(self, submission, submission_email_event,
11461146 self .assertEqual (len (q (selector )), 0 )
11471147
11481148 # Find the link for our submission in those awaiting drafts
1149- submission_url = self .get_href (q , "#awaiting -draft a#aw{}:contains({})" .
1149+ submission_url = self .get_href (q , "#waiting-for -draft a#aw{}:contains({})" .
11501150 format (submission .pk , submission_name_fragment ))
11511151
11521152 # Follow the link to the status page for this submission
@@ -1317,7 +1317,7 @@ def do_submission(self, name, rev, group=None, formats=["txt",]):
13171317 # We're not testing the submission process - just the submission status
13181318
13191319 # get
1320- url = urlreverse ('submit_upload_submission ' )
1320+ url = urlreverse ('ietf.submit.views.upload_submission ' )
13211321 r = self .client .get (url )
13221322 self .assertEqual (r .status_code , 200 )
13231323 q = PyQuery (r .content )
0 commit comments