#NEWLINE# def test_escape_builtin_encoders( self ) : #NEWLINE# #INDENT# con = self . connections [ 0 ] #NEWLINE# cur = con . cursor ( ) #NEWLINE# val = datetime . datetime ( 2012 , 3 , 4 , 5 , 6 ) #NEWLINE# self . assertEqual ( con . escape ( cur , con . encoders ) , "'2012-03-04 05:06:00'" )