'The built-in entity references are properly encoded.'

def test_escaping(self):

    s = '&<>\'"'
    self.assertEqual(domish.escapeToXml(s), '&amp;&lt;&gt;\'"')
    self.assertEqual(domish.escapeToXml(s, 1), '&amp;&lt;&gt;&apos;&quot;')
