コード例 #1
0
ファイル: binding_tests.py プロジェクト: kralca/mixbox
 def test_quote_xml_empty(self):
     i = ''
     s = quote_xml(i)
     self.assertEqual(u(''), s)
コード例 #2
0
ファイル: binding_tests.py プロジェクト: kralca/mixbox
 def test_quote_xml_none(self):
     i = None
     s = quote_xml(i)
     self.assertEqual(u(''), s)
コード例 #3
0
ファイル: binding_tests.py プロジェクト: kralca/mixbox
 def test_quote_xml_zero(self):
     i = 0
     s = quote_xml(i)
     self.assertEqual(six.text_type(i), s)
コード例 #4
0
ファイル: binding_tests.py プロジェクト: kralca/mixbox
 def test_quote_xml_bool(self):
     b = True
     s = quote_xml(b)
     self.assertEqual(six.text_type(b), s)
コード例 #5
0
ファイル: binding_tests.py プロジェクト: kralca/mixbox
 def test_quote_xml_int(self):
     i = 65536
     s = quote_xml(i)
     self.assertEqual(six.text_type(i), s)
コード例 #6
0
ファイル: binding_tests.py プロジェクト: kralca/mixbox
 def test_quote_xml(self):
     s = quote_xml(UNICODE_STR)
     self.assertEqual(s, UNICODE_STR)