forked from mozilla/zamboni
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jeff Balogh
committed
Jul 15, 2010
1 parent
dea2580
commit e59a7de
Showing
2 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# -*- coding: utf-8 -*- | ||
from nose.tools import eq_ | ||
|
||
from amo.utils import slugify | ||
|
||
|
||
def test_slugify(): | ||
check = lambda x, y: eq_(slugify(x), y) | ||
s = [('xx x - "#$@ x', 'xx-x-x'), | ||
(u'Bän...g (bang)', u'bäng-bang')] | ||
for val, expected in s: | ||
yield check, val, expected |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters