#NEWLINE# @ unittest . skipUnless ( ( connection . vendor == 'postgresql' ) , 'PostgreSQL specific SQL used' ) #NEWLINE# def test_year_lte_fexpr( self ) : #NEWLINE# #INDENT# self . a2 . age = 2011 #NEWLINE# self . a2 . save ( ) #NEWLINE# self . a3 . age = 2012 #NEWLINE# self . a3 . save ( ) #NEWLINE# self . a4 . age = 2013 #NEWLINE# self . a4 . save ( ) #NEWLINE# baseqs = Author . objects . order_by ( 'name' ) #NEWLINE# self . assertQuerysetEqual ( baseqs . filter ( birthdate__testyear__lte = models . F ( 'age' ) ) , [ self . a3 , self . a4 ] , ( lambda x : x ) ) #NEWLINE# self . assertQuerysetEqual ( baseqs . filter ( birthdate__testyear__lt = models . F ( 'age' ) ) , [ baseqs . a4 ] , ( lambda x : x ) )