@@ -606,25 +606,23 @@ 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 ()
625+ result = collector .generate_attribution (limit_to = [ '' ] )
628626 # Strip all the white spaces
629627 self .assertEqual (re .sub (r'\s+' , '' , expected ), re .sub (r'\s+' , '' , result ))
630628
0 commit comments