You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
blog/test/test_slugify.py

13 lines
725 B
Python

import unittest
import makesite
class SlugifyTest(unittest.TestCase):
def test_slugify(self):
self.assertEqual(makesite.slugify('NginX est brillant'), 'nginx-est-brillant')
self.assertEqual(makesite.slugify('Bilan hébergement 2023'), 'bilan-hebergement-2023')
self.assertEqual(makesite.slugify('Sécurisation Docker : des pistes'), 'securisation-docker-des-pistes')
self.assertEqual(makesite.slugify('Il court, il court, le furet'), 'il-court-il-court-le-furet')
self.assertEqual(makesite.slugify('De GNU/Linux à gnuSystemlinuxdGnomeOs'), 'de-gnulinux-a-gnusystemlinuxdgnomeos')
self.assertEqual(makesite.slugify('Au fait... mon téléphone'), 'au-fait-mon-telephone')