#NEWLINE# def test_precalculate_field_values( self ) : #NEWLINE# #INDENT# user = TestUser . objects . create ( pk = 1 , first_name = 'Luke' , last_name = 'Benstead' ) #NEWLINE# self . assertEqual ( 'Luke\x001' , user . pagination_first_name ) #NEWLINE# self . assertEqual ( 'Benstead\x001' , user . pagination_last_name ) #NEWLINE# self . assertEqual ( 'Luke\x00Benstead\x001' , user . pagination_first_name_last_name ) #NEWLINE# self . assertEqual ( ( '%s\x001' % user . created . isoformat ( ) ) , user . pagination_created ) #NEWLINE# reversed_last_name = '' . join ( [ unichr ( ( 65535 - ord ( x ) ) ) for x in 'Benstead' ] ) #NEWLINE# self . assertEqual ( 'Luke\x00{}\x001' . format ( self ) , user . pagination_first_name_neg_last_name )