Added slugify function
This commit is contained in:
parent
6770a442e2
commit
867feb4904
2 changed files with 73 additions and 0 deletions
13
tests/slugifytest.py
Normal file
13
tests/slugifytest.py
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
from settings import config
|
||||
from paramecio.citoplasma import slugify
|
||||
import unittest
|
||||
|
||||
class TestFieldMethods(unittest.TestCase):
|
||||
|
||||
def test_slugify(self):
|
||||
|
||||
phrase=slugify.slugify('this!()is a crap phrase o}çÇf oh yeah¡\'')
|
||||
|
||||
self.assertEqual(phrase, 'this---is-a-crap-phrase-o---f-oh-yeah--')
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue