#NEWLINE# def setUp( self ) : #NEWLINE# #INDENT# BaseTestCase . setUp ( self ) #NEWLINE# self . rawData = [ ] #NEWLINE# self . dataByKey = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for i in range ( 1 , 11 ) : #NEWLINE# #INDENT# timeTuple = ( 2002 , 12 , 9 , 0 , 0 , 0 , 0 , 0 , ( - 1 ) ) #NEWLINE# timeInTicks = ( time . mktime ( timeTuple ) + ( i * 86400 ) ) #NEWLINE# dateValue = cx_Oracle . TimestampFromTicks ( int ( timeInTicks ) ) #NEWLINE# strValue = str ( ( i * 50 ) ) #NEWLINE# fsecond = int ( ( strValue + ( '0' * ( 6 - len ( strValue ) ) ) ) ) #NEWLINE# dateCol = cx_Oracle . Timestamp ( dateValue . year , dateValue . month , dateValue . day , dateValue . hour , dateValue . minute , ( i * 2 ) , fsecond ) #NEWLINE# if ( i % 2 ) : #NEWLINE# #INDENT# timeInTicks = ( ( time . mktime ( timeTuple ) + ( i * 86400 ) ) + 86400 ) #NEWLINE# dateValue = cx_Oracle . TimestampFromTicks ( int ( timeInTicks ) ) #NEWLINE# strValue = str ( ( i * 125 ) ) #NEWLINE# fsecond = int ( ( strValue + ( '0' * ( 6 - len ( strValue ) ) ) ) ) #NEWLINE# nullableCol = cx_Oracle . Timestamp ( dateValue . year , dateValue . month , dateValue . day , dateValue . hour , dateValue . minute , ( i * 3 ) , fsecond ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# nullableCol = None #NEWLINE# #UNINDENT# tuple = ( i , dateCol , nullableCol ) #NEWLINE# self . rawData . append ( tuple ) #NEWLINE# self . dataByKey [ i ] = tuple