Пример #1
0
 def test_parseRow_specifiedDateFormat(self):
     (theDate, dict) = csvparser.parseRow(['8/1/2009', '123.001', '456.5'],
                                          ['ABC', 'DEF'], '%m/%d/%Y')
     self.assertEqual(theDate, (date(2009, 8, 1)))
     self.assertEqual(dict, {'ABC': 123.001, 'DEF': 456.5})
	def test_parseRow_specifiedDateFormat(self):
		(theDate, dict) = csvparser.parseRow(['8/1/2009', '123.001', '456.5'], ['ABC', 'DEF'], '%m/%d/%Y')
		self.assertEqual(theDate, (date(2009, 8, 1)))
		self.assertEqual(dict,  {'ABC': 123.001, 'DEF': 456.5})
Пример #3
0
 def test_parseRow(self):
     (theDate, dict) = csvparser.parseRow(['Aug-09', '123.001', '456.5'],
                                          ['ABC', 'DEF'])
     self.assertEqual(theDate, (date(2009, 8, 1)))
     self.assertEqual(dict, {'ABC': 123.001, 'DEF': 456.5})
	def test_parseRow(self):
		(theDate, dict) = csvparser.parseRow(['Aug-09', '123.001', '456.5'], ['ABC', 'DEF'])
		self.assertEqual(theDate, (date(2009, 8, 1)))
		self.assertEqual(dict, {'ABC': 123.001, 'DEF': 456.5})