def test_balanced_format(self): obj = MenuItem(title='{a}') self.assertTrue(obj.title_has_balanced_format_params())