def test_set_name(self): pf = ParserFunction('{{ #if: test | true | false }}') pf.name = pf.name.strip(WS) self.assertEqual('{{#if: test | true | false }}', pf.string)
def test_set_name(): pf = ParserFunction('{{ #if: test | true | false }}') pf.name = pf.name.strip(WS) assert '{{#if: test | true | false }}' == pf.string