@@ -960,15 +960,15 @@ def test_waiting_for_draft(self):
960960Thank you
961961""" .format (datetime .datetime .now ().ctime ())
962962 message = email .message_from_string (message_string )
963- submission , submission_email_event = \
963+ submission , submission_email_event = (
964964 add_submission_email (request = None ,
965965 remote_ip = "192.168.0.1" ,
966966 name = "draft-my-new-draft" ,
967967 rev = '00' ,
968968 submission_pk = None ,
969969 message = message ,
970970 by = Person .objects .get (name = "(System)" ),
971- msgtype = "msgin" )
971+ msgtype = "msgin" ) )
972972
973973 url = urlreverse ('ietf.submit.views.manualpost' )
974974 # Secretariat has access
@@ -1005,15 +1005,15 @@ def test_waiting_for_draft(self):
10051005 self .assertEqual (len (q ('.waiting-for-draft a:contains("draft-my-new-draft")' )), 0 )
10061006
10071007 # Should now be able to add it again
1008- submission , submission_email_event = \
1008+ submission , submission_email_event = (
10091009 add_submission_email (request = None ,
10101010 remote_ip = "192.168.0.1" ,
10111011 name = "draft-my-new-draft" ,
10121012 rev = '00' ,
10131013 submission_pk = None ,
10141014 message = message ,
10151015 by = Person .objects .get (name = "(System)" ),
1016- msgtype = "msgin" )
1016+ msgtype = "msgin" ) )
10171017
10181018
10191019 def test_waiting_for_draft_with_attachment (self ):
@@ -1041,16 +1041,17 @@ def test_waiting_for_draft_with_attachment(self):
10411041ZSBvZiBsaW5lcyAtIGJ1dCBpdCBjb3VsZCBiZSBhIGRyYWZ0Cg==
10421042--------------090908050800030909090207--
10431043""" .format (frm , datetime .datetime .now ().ctime ())
1044+
10441045 message = email .message_from_string (message_string )
1045- submission , submission_email_event = \
1046+ submission , submission_email_event = (
10461047 add_submission_email (request = None ,
10471048 remote_ip = "192.168.0.1" ,
10481049 name = "draft-my-new-draft" ,
10491050 rev = '00' ,
10501051 submission_pk = None ,
10511052 message = message ,
10521053 by = Person .objects .get (name = "(System)" ),
1053- msgtype = "msgin" )
1054+ msgtype = "msgin" ) )
10541055
10551056 manualpost_page_url = urlreverse ('ietf.submit.views.manualpost' )
10561057 # Secretariat has access
@@ -1135,8 +1136,7 @@ def check_manualpost_page(self, submission, submission_email_event,
11351136 is_secretariat ):
11361137 # get the page listing manual posts
11371138 r , q = self .request_and_parse (the_url )
1138- selector = "#waiting-for-draft a#add-submission-email{}:contains('Add email')" . \
1139- format (submission .pk , submission_name_fragment )
1139+ selector = "#waiting-for-draft a#add-submission-email%s:contains('Add email')" % submission .pk
11401140
11411141 if is_secretariat :
11421142 # Can add an email to the submission
@@ -1152,8 +1152,7 @@ def check_manualpost_page(self, submission, submission_email_event,
11521152 # Follow the link to the status page for this submission
11531153 r , q = self .request_and_parse (submission_url )
11541154
1155- selector = "#history a#reply{}:contains('Reply')" .\
1156- format (submission .pk )
1155+ selector = "#history a#reply%s:contains('Reply')" % submission .pk
11571156
11581157 if is_secretariat :
11591158 # check that reply button is visible and get the form
@@ -1171,8 +1170,7 @@ def check_manualpost_page(self, submission, submission_email_event,
11711170 if is_secretariat :
11721171 # Now try to send an email using the send email link
11731172
1174- selector = "a#send{}:contains('Send Email')" . \
1175- format (submission .pk )
1173+ selector = "a#send%s:contains('Send Email')" % submission .pk
11761174 send_url = self .get_href (q , selector )
11771175
11781176 self .do_submission_email (the_url = send_url ,
@@ -1194,8 +1192,7 @@ def check_manualpost_page(self, submission, submission_email_event,
11941192 if is_secretariat :
11951193 # check that reply button is visible
11961194
1197- reply_href = self .get_href (q , "#email-details a#reply{}:contains('Reply')" . \
1198- format (submission .pk ))
1195+ reply_href = self .get_href (q , "#email-details a#reply%s:contains('Reply')" % submission .pk )
11991196
12001197 else :
12011198 # No reply button
@@ -1308,6 +1305,7 @@ def do_submission_email(self, the_url, to, body):
13081305Date: {}
13091306Subject: test
13101307""" .format (reply_to , to , datetime .datetime .now ().ctime ())
1308+
13111309 result = process_response_email (message_string )
13121310 self .assertIsInstance (result , Message )
13131311
0 commit comments