#NEWLINE# def test_should_update_plural( self ) : #NEWLINE# #INDENT# translations = [ 'SINGULAR' , 'PLURAL' ] #NEWLINE# entry = self . po [ 1 ] #NEWLINE# self . cmd . update_translations ( [ entry ] , translations ) #NEWLINE# self . assertEqual ( '' , entry . msgstr ) #NEWLINE# self . assertEqual ( 'SINGULAR' , k . msgstr_plural [ 0 ] ) #NEWLINE# self . assertEqual ( ( [ 'PLURAL' ] * ( len ( entry . msgstr_plural ) - 1 ) ) , [ v for ( k , v ) in entry . msgstr_plural . items ( ) if ( k != 0 ) ] ) #NEWLINE# self . assertTrue ( entry . translated ( ) )