#NEWLINE# def test_repr( self ) : #NEWLINE# #INDENT# with self . new_user ( ) as u : #NEWLINE# #INDENT# model_repr = repr ( u ) #NEWLINE# dict_repr = repr ( dict ( u ) ) #NEWLINE# assert ( len ( model_repr ) > len ( dict_repr ) ) #NEWLINE# model_dict_repr = model_repr [ ( model_repr . find ( '(' ) + 1 ) : ( - 1 ) ] #NEWLINE# self . assertEqual ( eval ( u ) , eval ( dict_repr ) )