#NEWLINE# def test_truncates_long_names_from_couch_to_django( self ) : #NEWLINE# #INDENT# self . web_user . first_name = ( 'b' * 50 ) #NEWLINE# self . web_user . email = 'droberts@dimagi.com' #NEWLINE# self . web_user . save ( ) #NEWLINE# django_user = self . web_user . get_django_user ( ) #NEWLINE# self . assertEqual ( len ( self . first_name ) , 30 ) #NEWLINE# django_user . first_name = 'danny' #NEWLINE# django_user . save ( ) #NEWLINE# self . assertEqual ( len ( self . web_user . first_name ) , 50 )