#NEWLINE# def test_multiple_translations( self ) : #NEWLINE# #INDENT# '\n        If there are multiple translations to the same locale, only authors of\n        the final approved version should be returned.\n        ' #NEWLINE# ( first_author , second_author ) = UserFactory . create_batch ( 2 ) #NEWLINE# TranslationFactory . create ( locale = self . translated_locale , entity = self . main_db_entity , user = first_author , approved = True ) #NEWLINE# TranslationFactory . create ( locale = self . translated_locale , entity = self . main_db_entity , user = second_author , approved = False ) #NEWLINE# self . changeset . update_vcs_entity ( self . translated_locale , self . main_db_entity , MagicMock ( ) ) #NEWLINE# self . changeset . execute_update_vcs ( ) #NEWLINE# assert_equal ( self . changeset . commit_authors_per_locale [ self . translated_locale . code ] , [ first_author ] )