@@ -180,7 +180,7 @@ def test_get_dje_license_list_file_no_gen_license_with_license_text_file_key_exi
180180 gen_location = join (TESTDATA_PATH , "test_files_for_genabout/" )
181181 input_list = [{'about_file' : '/about.py.ABOUT' , 'version' : '0.8.1' ,
182182 'about_resource' : '.' , 'name' : 'ABOUT tool' ,
183- 'license_text_file' : '../../../../apache2.LICENSE.txt ' }]
183+ 'license_text_file' : '../../../../apache2.LICENSE' }]
184184 expected_output_list = []
185185 gen_license = False
186186 lic_output_list = gen .get_dje_license_list (gen_location , input_list , gen_license )
@@ -193,7 +193,7 @@ def test_get_dje_license_list_dir_no_gen_license_with_license_text_file_key_exis
193193 gen_location = join (TESTDATA_PATH , "test_files_for_genabout/" )
194194 input_list = [{'about_file' : '/ABOUT/' , 'version' : '0.8.1' ,
195195 'about_resource' : '.' , 'name' : 'ABOUT tool' ,
196- 'license_text_file' : '../../../../apache2.LICENSE.txt ' }]
196+ 'license_text_file' : '../../../../apache2.LICENSE' }]
197197 expected_output_list = []
198198 gen_license = False
199199 lic_output_list = gen .get_dje_license_list (gen_location , input_list , gen_license )
@@ -206,7 +206,7 @@ def test_get_dje_license_list_file_gen_license_with_license_text_file_key_exist(
206206 gen_location = join (TESTDATA_PATH , "test_files_for_genabout/" )
207207 input_list = [{'about_file' : '/about.py.ABOUT' , 'version' : '0.8.1' ,
208208 'about_resource' : '.' , 'name' : 'ABOUT tool' ,
209- 'license_text_file' : '../../../../apache2.LICENSE.txt ' }]
209+ 'license_text_file' : '../../../../apache2.LICENSE' }]
210210 expected_output_list = []
211211 gen_license = True
212212 lic_output_list = gen .get_dje_license_list (gen_location , input_list , gen_license )
@@ -366,10 +366,10 @@ def test_format_output_with_continuation(self):
366366 def test_verify_license_files_exist (self ):
367367 gen = genabout .GenAbout ()
368368 input_list = [{'version' : '0.8.1' , 'about_file' : '/TESTCASE/' ,
369- 'license_text_file' : 'apache2.LICENSE.txt ' ,
369+ 'license_text_file' : 'apache2.LICENSE' ,
370370 'name' : 'ABOUT tool' , 'about_resource' : '.' }]
371371 path = '.'
372- expected_list = [('./apache2.LICENSE.txt ' , '' )]
372+ expected_list = [('./apache2.LICENSE' , '' )]
373373 output = gen .verify_license_files (input_list , path , False )
374374 self .assertEqual (expected_list , output )
375375 self .assertFalse (gen .warnings , "No warnings should be returned." )
@@ -378,10 +378,10 @@ def test_verify_license_files_exist(self):
378378 def test_verify_license_files_exist_license_in_project (self ):
379379 gen = genabout .GenAbout ()
380380 input_list = [{'version' : '0.8.1' , 'about_file' : '/TESTCASE/' ,
381- 'license_text_file' : 'apache2.LICENSE.txt ' ,
381+ 'license_text_file' : 'apache2.LICENSE' ,
382382 'name' : 'ABOUT tool' , 'about_resource' : '.' }]
383383 path = '.'
384- expected_list = [('./apache2.LICENSE.txt ' , '' )]
384+ expected_list = [('./apache2.LICENSE' , '' )]
385385 output = gen .verify_license_files (input_list , path , True )
386386 self .assertEqual (expected_list , output )
387387 self .assertFalse (gen .warnings , "No warnings should be returned." )
@@ -440,8 +440,8 @@ def test_gen_license_list_no_license_text_file_key(self):
440440
441441 def test_copy_license_files_test_path_not_endswith_slash (self ):
442442 gen = genabout .GenAbout ()
443- input_list = [('apache2.LICENSE.txt ' , '.' )]
444- expected_list = ['apache2.LICENSE.txt ' ]
443+ input_list = [('apache2.LICENSE' , '.' )]
444+ expected_list = ['apache2.LICENSE' ]
445445 project_path = os .path .abspath ('.' )
446446 tmp_path = tempfile .mkdtemp ()
447447 gen .copy_license_files (tmp_path , input_list )
@@ -452,8 +452,8 @@ def test_copy_license_files_test_path_not_endswith_slash(self):
452452
453453 def test_copy_license_files_test_path_endswith_slash (self ):
454454 gen = genabout .GenAbout ()
455- input_list = [('apache2.LICENSE.txt ' , '.' )]
456- expected_list = ['apache2.LICENSE.txt ' ]
455+ input_list = [('apache2.LICENSE' , '.' )]
456+ expected_list = ['apache2.LICENSE' ]
457457 project_path = os .path .abspath ('.' )
458458 tmp_path = tempfile .mkdtemp () + '/'
459459 gen .copy_license_files (tmp_path , input_list )
0 commit comments