Ticket #36: 0003-Added-one-more-unicode-test-for-slugify.patch

File 0003-Added-one-more-unicode-test-for-slugify.patch, 893 bytes (added by Aaron Williamson, 13 years ago)

0003-Added-one-more-unicode-test-for-slugify.patch

  • mediagoblin/tests/test_util.py

    From 7c31b2d47735de5adad5f5dbc27b0848a8404f26 Mon Sep 17 00:00:00 2001
    From: Aaron Williamson <aaron@copiesofcopies.org>
    Date: Thu, 12 May 2011 16:48:35 -0400
    Subject: [PATCH 3/3] Added one more unicode test for slugify
    
    ---
     mediagoblin/tests/test_util.py |    1 +
     1 files changed, 1 insertions(+), 0 deletions(-)
    
    diff --git a/mediagoblin/tests/test_util.py b/mediagoblin/tests/test_util.py
    index 30a33d2..7b00a07 100644
    a b def test_slugify():  
    7777    assert util.slugify('a walk in-the-park') == 'a-walk-in-the-park'
    7878    assert util.slugify('a w@lk in the park?') == 'a-w-lk-in-the-park'
    7979    assert util.slugify(u'a walk in the par\u0107') == 'a-walk-in-the-parc'
     80    assert util.slugify(u'\u00E0\u0042\u00E7\u010F\u00EB\u0066') == 'abcdef'
    8081
    8182def test_locale_to_lower_upper():
    8283    """