def test_noinclude(self): self.assertEqual(q.escape_variables("abcd<noinclude>efghij</noinclude>"), ["abcd"]) self.assertEqual(q.escape_variables("abcd\n<noinclude>\nefghij\n</noinclude>\n"), ["abcd"])
def test_noescape(self): self.assertEqual(q.escape_variables("abcd\n"), ["abcd"])