#NEWLINE# def test_update_db_unapprove_existing( self ) : #NEWLINE# #INDENT# "\n        Any existing translations that don't match anything in VCS get\n        unapproved, unless they were created after self.now.\n        " #NEWLINE# self . main_db_translation . approved = True #NEWLINE# self . main_db_translation . approved_date = aware_datetime ( 1970 , 1 , 1 ) #NEWLINE# self . main_db_translation . approved_user = UserFactory . create ( ) #NEWLINE# self . main_db_translation . save ( ) #NEWLINE# self . main_vcs_translation . strings [ None ] = 'New Translated String' #NEWLINE# created_after_translation = TranslationFactory . create ( entity = self . main_db_entity , approved = True , approved_date = aware_datetime ( 1970 , 1 , 3 ) ) #NEWLINE# self . update_main_db_entity ( ) #NEWLINE# self . main_db_translation . refresh_from_db ( ) #NEWLINE# assert_attributes_equal ( self . main_db_translation , approved = False , approved_user = None , approved_date = None ) #NEWLINE# created_after_translation . refresh_from_db ( ) #NEWLINE# assert_attributes_equal ( created_after_translation , approved = True , approved_date = aware_datetime ( 1970 , 1 , 3 ) )