#NEWLINE# @ unittest . skipUnless ( ( connection . vendor == 'mysql' ) , 'MySQL specific SQL used' ) #NEWLINE# def test_datetime_output_field( self ) : #NEWLINE# #INDENT# with register_lookup ( models . PositiveIntegerField , DateTimeTransform ) : #NEWLINE# #INDENT# ut = MySQLUnixTimestamp . objects . create ( timestamp = time . time ( ) ) #NEWLINE# y2k = timezone . make_aware ( datetime ( 2000 , 1 , 1 ) ) #NEWLINE# self . assertQuerysetEqual ( MySQLUnixTimestamp . objects . filter ( timestamp__as_datetime__gt = y2k ) , [ ut ] , ( lambda x : x ) )