def test_balanced_template(self): obj = MenuItem(title='{{ a }}') self.assertTrue(obj.title_has_balanced_template_params())