#NEWLINE# def test_create_relation_with_ugettext_lazy( self ) : #NEWLINE# #INDENT# reporter = Reporter . objects . create ( first_name = 'John' , last_name = 'Smith' , email = 'john.smith@example.com' ) #NEWLINE# lazy = ugettext_lazy ( 'test' ) #NEWLINE# reporter . article_set . create ( headline = lazy , pub_date = datetime . date ( 2011 , 6 , 10 ) ) #NEWLINE# notlazy = six . text_type ( reporter ) #NEWLINE# article = reporter . article_set . get ( ) #NEWLINE# self . assertEqual ( article . headline , notlazy )