File tree Expand file tree Collapse file tree 1 file changed +13
-7
lines changed Expand file tree Collapse file tree 1 file changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -373,21 +373,27 @@ def test_get_base_url(self):
373373 )
374374
375375 def test_base_url_in_comment (self ):
376- self .assertEqual (get_base_url ('''<!-- <base href="http://example.com/"/> -->''' ), '' )
377- self .assertEqual (get_base_url ('''<!-- <base href="http://example.com/"/>''' ), '' )
378- self .assertEqual (get_base_url ('''<!-- <base href="http://example.com/"/> --''' ), '' )
376+ self .assertEqual (
377+ get_base_url ("""<!-- <base href="http://example.com/"/> -->""" ), ""
378+ )
379+ self .assertEqual (
380+ get_base_url ("""<!-- <base href="http://example.com/"/>""" ), ""
381+ )
382+ self .assertEqual (
383+ get_base_url ("""<!-- <base href="http://example.com/"/> --""" ), ""
384+ )
379385 self .assertEqual (
380386 get_base_url (
381- ''' <!-- <!-- <base href="http://example.com/"/> -- --> <base href="http://example_2.com/"/> '''
387+ """ <!-- <!-- <base href="http://example.com/"/> -- --> <base href="http://example_2.com/"/> """
382388 ),
383- "http://example_2.com/"
389+ "http://example_2.com/" ,
384390 )
385391
386392 self .assertEqual (
387393 get_base_url (
388- ''' <!-- <base href="http://example.com/"/> --> <!-- <base href="http://example_2.com/"/> --> <base href="http://example_3.com/"/>'''
394+ """ <!-- <base href="http://example.com/"/> --> <!-- <base href="http://example_2.com/"/> --> <base href="http://example_3.com/"/>"""
389395 ),
390- "http://example_3.com/"
396+ "http://example_3.com/" ,
391397 )
392398
393399 def test_relative_url_with_absolute_path (self ):
You can’t perform that action at this time.
0 commit comments