#NEWLINE# def test_values( self ) : #NEWLINE# #INDENT# self . assertEquals ( [ entity [ 'pk' ] for entity in FieldsWithOptionsModel . objects . filter ( integer__gt = 3 ) . order_by ( 'integer' ) . values ( 'pk' ) ] , [ 'app-engine@scholardocs.com' , 'rinnengan@sage.de' ] ) #NEWLINE# self . assertEquals ( FieldsWithOptionsModel . objects . filter ( integer__gt = 3 ) . order_by ( 'integer' ) . values ( 'pk' ) . count ( ) , 2 ) #NEWLINE# self . assertEquals ( [ entity [ 'integer' ] for entity in FieldsWithOptionsModel . objects . filter ( email__startswith = 'r' ) . order_by ( 'email' ) . values ( 'integer' ) ] , [ 1 , 9 ] ) #NEWLINE# self . assertEquals ( [ entity [ 'floating_point' ] for entity in FieldsWithOptionsModel . objects . filter ( integer__gt = 3 ) . order_by ( 'integer' ) . values ( 'floating_point' ) ] , [ 5.3 , 9.1 ] ) #NEWLINE# self . assertEquals ( [ entity [ 0 ] for entity in FieldsWithOptionsModel . objects . filter ( integer__gt = 3 ) . order_by ( 'integer' ) . values_list ( 'pk' ) ] , [ 'app-engine@scholardocs.com' , 'rinnengan@sage.de' ] )