def test_replacement(self): "Test replacement" self.assertEqual(escape_xml_invalid_chars("foo \x00 bar", "?"), "foo ? bar")
def test_valid_control(self): "Test escape valid control" self.assertEqual(escape_xml_invalid_chars("foo \x09"), "foo \x09")
def test_invalid(self): "Test escape invalid" self.assertEqual(escape_xml_invalid_chars("foo \x00 bar"), "foo bar")
def test_valid(self): "Test escape valid" self.assertEqual(escape_xml_invalid_chars("foo"), "foo")