예제 #1
0
 def testOther(self):
   self.assertEqual('True', tables._RowValueToStr(True))
   self.assertEqual('12345', tables._RowValueToStr(12345))
   self.assertEqual(
       '2018-07-31 10:11:12',
       tables._RowValueToStr(datetime.datetime(2018, 7, 31, 10, 11, 12)))
예제 #2
0
 def testUnicode(self):
   self.assertEqual(
       'aaa???bbb', tables._RowValueToStr(u'aaa\u00A2\u00A2\u00A2bbb'))
예제 #3
0
 def testNone(self):
   self.assertEqual('None', tables._RowValueToStr(None))
예제 #4
0
 def testList(self):
   self.assertEqual(
       "['111', '222', '333']",
       tables._RowValueToStr([111, 222, 333]))