@@ -116,7 +116,7 @@ def test_header_row_in_csv_output(self):
116116 'checksum_sha256,dje_component,dje_license,dje_organization,'
117117 'dje_license_name,scm_branch,scm_repository,signature_gpg_file,'
118118 'redistribute_sources,about_format,usage,'
119- 'license_text,notice,' # These two are not supported and thus treat as custom keys
119+ 'license_text,notice,' # These two are not supported and thus treat as custom keys
120120 'scm_path,scm_tool,scm_rev,scm_tag,organization,'
121121 'warnings,errors' )
122122
@@ -606,26 +606,24 @@ def test_remove_blank_lines_and_no_colon_fields(self):
606606 self .assertEqual (expected_warnings [i ][0 ], w .code )
607607 self .assertEqual (expected_warnings [i ][1 ], w .field_value )
608608
609- # FIXME: This is failing because there is no component list provided
610- def FAILING_test_generate_attribution_with_custom_template (self ):
609+ def test_generate_attribution_with_custom_template (self ):
611610 expected = (u'notice_text:'
612611 'version:2.4.3'
613612 'about_resource:httpd-2.4.3.tar.gz'
614613 'name:Apache HTTP Serverlicense_text:' )
615614 test_file = join (TESTDATA_DIR , 'attrib/attrib.ABOUT' )
616615 collector = about .Collector (test_file )
617616 template = join (TESTDATA_DIR , 'attrib/test.template' )
618- result = collector .generate_attribution (template )
617+ result = collector .generate_attribution (template , limit_to = [ '' ] )
619618 self .assertEqual (expected , result )
620619
621- # FIXME: This is failing because there is no component list provided
622- def FAILING_test_generate_attribution_with_default_template (self ):
620+ def test_generate_attribution_with_default_template (self ):
623621 f = open (join (TESTDATA_DIR , 'attrib/attrib.html' ))
624622 expected = f .read ()
625623 test_file = join (TESTDATA_DIR , 'attrib/attrib.ABOUT' )
626624 collector = about .Collector (test_file )
627- result = collector .generate_attribution ()
628- # Strip all the white spaces
625+ result = collector .generate_attribution (limit_to = [ '' ] )
626+ # Strip all the white spaces
629627 self .assertEqual (re .sub (r'\s+' , '' , expected ), re .sub (r'\s+' , '' , result ))
630628
631629 def test_license_text_extracted_from_license_text_file (self ):
@@ -698,4 +696,4 @@ def test_get_about_name(self):
698696 def test_get_dje_license_name (self ):
699697 about_file = about .AboutFile (join (TESTDATA_DIR , 'basic/simple.about' ))
700698 result = about_file .get_dje_license_name ()
701- self .assertEqual (result , 'Apache License 2.0' )
699+ self .assertEqual (result , 'Apache License 2.0' )
0 commit comments