def test_load_macros_malformed_arguments_exception(self):
        # malformed argument: no quotes
        self.assertRaisesRegexp(
            template.TemplateSyntaxError,
            r"^Malformed argument to the .+ template tag. "
                 "Argument must be in quotes.$",
            Template,
            self.LOAD_MACROS +
                "{% loadmacros macros/tests/testmacros.html %}")
        # malformed argument: mismatched quotes ("')
        self.assertRaisesRegexp(
            template.TemplateSyntaxError,
            r"^Malformed argument to the .+ template tag. "
                 "Argument must be in quotes.$",
            Template,
            self.LOAD_MACROS +
                "{% loadmacros \"macros/tests/testmacros.html' %}")
        # malformed argument: mismatched quotes ('")
        self.assertRaisesRegexp(
            template.TemplateSyntaxError,
            r"^Malformed argument to the .+ template tag. "
                 "Argument must be in quotes.$",
            Template,
            self.LOAD_MACROS +
                "{% loadmacros 'macros/tests/testmacros.html\" %}")
        # malformed argument: only one quote
        self.assertRaisesRegexp(
            template.TemplateSyntaxError,
            r"^Malformed argument to the .+ template tag. "
                 "Argument must be in quotes.$",
            Template,
            self.LOAD_MACROS +
                "{% loadmacros 'macros/tests/testmacros.html %}")
Return the view used by the editor.
dataset/ETHPy150Open nalourie/django-macros/build/lib/macros/tests.py/MacrosTests.test_load_macros_malformed_arguments_exception--crossover with--dataset/ETHPy150Open enthought/traitsui/traitsui/ui_editors/array_view_editor.py/_ArrayViewEditor._array_view