def test_quote_xml_empty(self): i = '' s = quote_xml(i) self.assertEqual(u(''), s)
def test_quote_xml_none(self): i = None s = quote_xml(i) self.assertEqual(u(''), s)
def test_quote_xml_zero(self): i = 0 s = quote_xml(i) self.assertEqual(six.text_type(i), s)
def test_quote_xml_bool(self): b = True s = quote_xml(b) self.assertEqual(six.text_type(b), s)
def test_quote_xml_int(self): i = 65536 s = quote_xml(i) self.assertEqual(six.text_type(i), s)
def test_quote_xml(self): s = quote_xml(UNICODE_STR) self.assertEqual(s, UNICODE_STR)