示例#1
0
 def testValidDate(self):
     date = EVChartMacro.getEVDate(self.db.cursor(),
                                   TestCaseInformation.getTicketNumber())
     assert date.day == TestCaseInformation.getTicketEVDay(
     ), 'Incorrect day'
     assert date.month == TestCaseInformation.getTicketEVMonth(
     ), 'Incorrect month'
     assert date.year == TestCaseInformation.getTicketEVYear(
     ), 'Incorrect year'
示例#2
0
 def testNoDate(self):
     date = EVChartMacro.getEVDate(self.db.cursor(), -1)
     assert date == NONE, 'Expected None type'
示例#3
0
	def testNoDate(self):
		date = EVChartMacro.getEVDate(self.db.cursor(), -1)
		assert date == NONE, 'Expected None type'
示例#4
0
	def testValidDate(self):
		date = EVChartMacro.getEVDate(self.db.cursor(), TestCaseInformation.getTicketNumber())
		assert date.day == TestCaseInformation.getTicketEVDay(), 'Incorrect day'
		assert date.month == TestCaseInformation.getTicketEVMonth(), 'Incorrect month'
		assert date.year == TestCaseInformation.getTicketEVYear(), 'Incorrect year'