Esempio n. 1
0
 def test_quote_xml_empty(self):
     i = ''
     s = quote_xml(i)
     self.assertEqual(u(''), s)
Esempio n. 2
0
 def test_quote_xml_none(self):
     i = None
     s = quote_xml(i)
     self.assertEqual(u(''), s)
Esempio n. 3
0
 def test_quote_xml_zero(self):
     i = 0
     s = quote_xml(i)
     self.assertEqual(six.text_type(i), s)
Esempio n. 4
0
 def test_quote_xml_bool(self):
     b = True
     s = quote_xml(b)
     self.assertEqual(six.text_type(b), s)
Esempio n. 5
0
 def test_quote_xml_int(self):
     i = 65536
     s = quote_xml(i)
     self.assertEqual(six.text_type(i), s)
Esempio n. 6
0
 def test_quote_xml(self):
     s = quote_xml(UNICODE_STR)
     self.assertEqual(s, UNICODE_STR)