def test_num_suffix(self): self.assertEqual('slug13', slugify('slug', suffix=13))
def test_non_ascii(self): self.assertEqual('_', slugify('Рекомендация'))
def test_limit(self): self.assertEqual( 'abcdefghij', slugify('ABCDEFGHIJKLMNOPQRSTUVWXYZ', length=10))
def test_already_slugged(self): self.assertEqual('foo', slugify('foo'))
def test_long_string(self): self.assertEqual( 'abcdefghijklmnopqrstuvwxyz-abcdefghijklmnopqrstuvw', slugify('ABCDEFGHIJKLMNOPQRSTUVWXYZ-abcdefghijklmnopqrstuvwxyz'))
def test_limit(self): self.assertEqual('abcdefghij', slugify('ABCDEFGHIJKLMNOPQRSTUVWXYZ', length=10))
def test_non_ascii(self): self.assertEqual('_', slugify("Рекомендация"))