@@ -238,7 +238,7 @@ def test_new_specific(self):
238238
239239 # successful post
240240 empty_outbox ()
241- r = self . client . post ( url , {
241+ data = {
242242 "holder_legal_name" : "Test Legal" ,
243243 "holder_contact_name" : "Test Holder" ,
244244 "holder_contact_email" : "test@holder.com" ,
@@ -258,7 +258,8 @@ def test_new_specific(self):
258258 "licensing" : "royalty-free" ,
259259 "submitter_name" : "Test Holder" ,
260260 "submitter_email" : "test@holder.com" ,
261- })
261+ }
262+ r = self .client .post (url , data )
262263 self .assertContains (r , "Your IPR disclosure has been submitted" )
263264
264265 iprs = IprDisclosureBase .objects .filter (title__icontains = draft .name )
@@ -273,6 +274,19 @@ def test_new_specific(self):
273274 self .assertTrue ('New IPR Submission' in outbox [0 ]['Subject' ])
274275 self .assertTrue ('ietf-ipr@' in outbox [0 ]['To' ])
275276
277+ # Check some additional application number formats:
278+ for patent_number in [
279+ 'PCT/EP2019/123456' , # WO application
280+ 'PCT/EP05/12345' , # WO application, old
281+ 'ATA123/2012' , # Austria
282+ 'AU2011901234' , # Australia
283+ 'BE2010/0912' , # Belgium
284+ 'CA1234567' , # Canada
285+ ]:
286+ data ['patent_number' ] = patent_number
287+ r = self .client .post (url , data )
288+ self .assertContains (r , "Your IPR disclosure has been submitted" , msg_prefix = "Checked patent number: %s" % patent_number )
289+
276290 def test_new_thirdparty (self ):
277291 """Add a new third-party disclosure. Note: submitter does not need to be logged in.
278292 """
0 commit comments