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'
def testNoDate(self): date = EVChartMacro.getEVDate(self.db.cursor(), -1) assert date == NONE, 'Expected None type'
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'