#NEWLINE# def test_float( self ) : #NEWLINE# #INDENT# t = sqlparse . parse ( '.5' ) [ 0 ] . tokens #NEWLINE# self . assertEqual ( len ( t ) , 1 ) #NEWLINE# self . assert_ ( ( t [ 0 ] . ttype is sqlparse . tokens . Number . Float ) ) #NEWLINE# t = sqlparse . parse ( '.51' ) [ 0 ] . tokens #NEWLINE# self . assertEqual ( len ( t ) , 1 ) #NEWLINE# self . assert_ ( ( t [ 0 ] . ttype is sqlparse . tokens . Number . Float ) ) #NEWLINE# t = sqlparse . parse ( '1.5' ) [ 0 ] . tokens #NEWLINE# self . assertEqual ( len ( t ) , 1 ) #NEWLINE# self . assert_ ( ( t [ 0 ] . ttype is sqlparse . tokens . Number . Float ) ) #NEWLINE# t = sqlparse . parse ( '12.5' ) [ 0 ] . tokens #NEWLINE# self . assertEqual ( len ( t ) , 1 ) #NEWLINE# self . assert_ ( ( t [ 0 ] . ttype is sqlparse . tokens . Number . Float ) )