      def test_filter_syntax07(self):
          """
          Raise TemplateSyntaxError for invalid block tags
          """
          with self.assertRaises(TemplateSyntaxError):
              self.engine.get_template('filter-syntax07')
  
      @setup({'filter-syntax08': "{% %}"})
      def test_filter_syntax08(self):
          """
 
</s> remove         with self.assertRaises(TemplateSyntaxError):
 </s> add         with self.assertRaisesMessage(TemplateSyntaxError, "Invalid filter: 'fil'"): </s> remove         with self.assertRaises(TemplateSyntaxError):
 </s> add         msg = "Invalid filter: 'does_not_exist'"
        with self.assertRaisesMessage(TemplateSyntaxError, msg): </s> remove         with self.assertRaises(ImproperlyConfigured):
 </s> add         msg = "'apps.apps.BadConfig' must supply a name attribute."
        with self.assertRaisesMessage(ImproperlyConfigured, msg): </s> remove         with self.assertRaises(ImproperlyConfigured):
 </s> add         msg = "'apps.apps.NotAConfig' isn't a subclass of AppConfig."
        with self.assertRaisesMessage(ImproperlyConfigured, msg): </s> remove         with self.assertRaises(ImproperlyConfigured):
 </s> add         msg = (
            "TemplateResponseMixin requires either a definition of "
            "'template_name' or an implementation of 'get_template_names()'"
        )
        with self.assertRaisesMessage(ImproperlyConfigured, msg):
        msg = (
            "Invalid block tag on line 1: 'nothing_to_see_here'. Did you "
            "forget to register or load this tag?"
        )
        with self.assertRaisesMessage(TemplateSyntaxError, msg):
      def test_filter_syntax07(self):
          """
          Raise TemplateSyntaxError for invalid block tags
          """
        msg = (
            "Invalid block tag on line 1: 'nothing_to_see_here'. Did you "
            "forget to register or load this tag?"
        )
        with self.assertRaisesMessage(TemplateSyntaxError, msg):
              self.engine.get_template('filter-syntax07')
  
      @setup({'filter-syntax08': "{% %}"})
      def test_filter_syntax08(self):
          """
keep keep keep keep replace keep keep keep keep keep
 Used assertRaisesMessage() to test Django's error messages. 
tests/template_tests/syntax_tests/test_filter_syntax.py