

def setUp(self):
    BaseTestCase.setUp(self)
    self.rawData = []
    self.dataByKey = {
        
    }
    for i in range(1, 11):
        timeTuple = (2002, 12, 9, 0, 0, 0, 0, 0, (- 1))
        timeInTicks = ((time.mktime(timeTuple) + (i * 86400)) + (i * 8640))
        dateCol = cx_Oracle.TimestampFromTicks(int(timeInTicks))
        if (i % 2):
            timeInTicks = ((time.mktime(timeTuple) + ((i * 86400) * 2)) + (i * 12960))
            nullableCol = cx_Oracle.TimestampFromTicks(int(timeInTicks))
        else:
            nullableCol = None
        tuple = (i, dateCol, nullableCol)
        self.rawData.append(tuple)
        self.dataByKey[i] = tuple

dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/cx_Oracle-5.1.2/test/DateTimeVar.py TestDateTimeVar.setUp/original