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):
373
373
)
374
374
375
375
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
+ )
379
385
self .assertEqual (
380
386
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/"/> """
382
388
),
383
- "http://example_2.com/"
389
+ "http://example_2.com/" ,
384
390
)
385
391
386
392
self .assertEqual (
387
393
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/"/>"""
389
395
),
390
- "http://example_3.com/"
396
+ "http://example_3.com/" ,
391
397
)
392
398
393
399
def test_relative_url_with_absolute_path (self ):
You can’t perform that action at this time.
0 commit comments