def test_l10n_dups():
 request = HttpRequest()
 setattr(request, '_messages', default_storage(request))
 info(request, _('Title'), _('Body'))
 info(request, _('Title'), _('Body'))
 info(request, _('Another Title'), _('Another Body'))
 storage = django_messages.get_messages(request)
 assert (len(storage) == 2), 'Too few or too many messages recorded.'

def test_l10n_dups ( ) : request = HttpRequest ( ) setattr ( request , '_messages' , default_storage ( request ) ) info ( request , _ ( 'Title' ) , _ ( 'Body' ) ) info ( request , _ ( 'Title' ) , _ ( 'Body' ) ) info ( request , _ ( 'Another Title' ) , _ ( 'Another Body' ) ) storage = django_messages . get_messages ( request ) assert ( len ( storage ) == 2 ) , 'Too few or too many messages recorded.'
test that l10n values are preserved .