'Tests whether specifying a precompiler also runs the CssAbsoluteFilter even if
compression is disabled, but only if the CssAbsoluteFilter is actually contained
in the filters setting.
While at it, ensure that everything runs as expected when compression is enabled.'

@override_settings(COMPRESS_CSS_HASHING_METHOD=u'content')
def test_precompiler_enables_absolute(self):

    self.helper(enabled=False, use_precompiler=False, use_absolute_filter=False, expected_output=self.html_orig)
    self.helper(enabled=False, use_precompiler=False, use_absolute_filter=True, expected_output=self.html_orig)
    self.helper(enabled=False, use_precompiler=True, use_absolute_filter=False, expected_output=self.html_link_to_precompiled_css)
    self.helper(enabled=False, use_precompiler=True, use_absolute_filter=True, expected_output=self.html_link_to_absolutized_css)
    self.helper(enabled=True, use_precompiler=False, use_absolute_filter=False, expected_output=self.css_orig)
    self.helper(enabled=True, use_precompiler=False, use_absolute_filter=True, expected_output=self.css_absolutized)
    self.helper(enabled=True, use_precompiler=True, use_absolute_filter=False, expected_output=self.css_orig)
    self.helper(enabled=True, use_precompiler=True, use_absolute_filter=True, expected_output=self.css_absolutized)
