@@ -231,8 +231,9 @@ def test_get_dje_license_list_gen_license_with_dje_license_key_empty_license_tex
231231 gen_location = join (TESTDATA_PATH , "test_files_for_genabout/" )
232232 input_list = [{'about_file' : '/about.py.ABOUT' , 'version' : '0.8.1' ,
233233 'about_resource' : '.' , 'name' : 'ABOUT tool' ,
234+ 'dje_license_name' : 'Apache License 2.0' ,
234235 'license_text_file' : '' , 'dje_license' : 'apache-2.0' }]
235- expected_output_list = [('/' , 'apache- 2.0' )]
236+ expected_output_list = [('/' , 'Apache License 2.0' )]
236237 gen_license = True
237238 lic_output_list = gen .get_dje_license_list (gen_location , input_list , gen_license )
238239 self .assertTrue (expected_output_list == lic_output_list )
@@ -257,8 +258,9 @@ def test_get_dje_license_list_gen_license_with_dje_license_key_no_license_text_f
257258 gen_location = join (TESTDATA_PATH , "test_files_for_genabout/" )
258259 input_list = [{'about_file' : '/about.py.ABOUT' , 'version' : '0.8.1' ,
259260 'about_resource' : '.' , 'name' : 'ABOUT tool' ,
261+ 'dje_license_name' : 'Apache License 2.0' ,
260262 'dje_license' : 'apache-2.0' }]
261- expected_output_list = [('/' , 'apache- 2.0' )]
263+ expected_output_list = [('/' , 'Apache License 2.0' )]
262264 gen_license = True
263265 lic_output_list = gen .get_dje_license_list (gen_location , input_list , gen_license )
264266 self .assertTrue (expected_output_list == lic_output_list )
@@ -434,21 +436,23 @@ def test_gen_license_list_license_text_file_no_value(self):
434436 gen = genabout .GenAbout ()
435437 input_list = {'about_file' : '/tmp/3pp/opensans/' , 'name' : 'OpenSans Fonts' ,
436438 'version' : '1' , 'dje_license' : 'apache-2.0' ,
439+ 'dje_license_name' : 'Apache License 2.0' ,
437440 'license_text_file' : '' , 'about_resource' : 'opensans' }
438- expected_list = ('/tmp/3pp' , 'apache- 2.0' )
441+ expected_list = ('/tmp/3pp' , 'Apache License 2.0' )
439442 output = gen .gen_license_list (input_list )
440443 self .assertTrue (expected_list == output )
441- self .assertTrue (input_list ['license_text_file' ] == 'apache- 2.0.LICENSE' )
444+ self .assertTrue (input_list ['license_text_file' ] == 'Apache License 2.0.LICENSE' )
442445
443446 def test_gen_license_list_no_license_text_file_key (self ):
444447 gen = genabout .GenAbout ()
445448 input_list = {'about_file' : '/tmp/3pp/opensans/' , 'name' : 'OpenSans Fonts' ,
446449 'version' : '1' , 'dje_license' : 'apache-2.0' ,
450+ 'dje_license_name' : 'Apache License 2.0' ,
447451 'about_resource' : 'opensans' }
448- expected_list = ('/tmp/3pp' , 'apache- 2.0' )
452+ expected_list = ('/tmp/3pp' , 'Apache License 2.0' )
449453 output = gen .gen_license_list (input_list )
450454 self .assertTrue (expected_list == output )
451- self .assertTrue (input_list ['license_text_file' ] == 'apache- 2.0.LICENSE' )
455+ self .assertTrue (input_list ['license_text_file' ] == 'Apache License 2.0.LICENSE' )
452456
453457 def test_copy_license_files_test_path_not_endswith_slash (self ):
454458 gen = genabout .GenAbout ()
0 commit comments