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