示例#1
0
 def test_simple(self):
     a = CommonArticle(name="ahoj a hola")
     self.assertEquals("ahoj-a-hola", a.get_slug())
示例#2
0
 def test_combining(self):
     a = CommonArticle(name="ahoj a ďíky")
     self.assertEquals("ahoj-a-diky", a.get_slug())
示例#3
0
 def test_strip_noncombining(self):
     a = CommonArticle(name="ahoj a 你好")
     self.assertEquals("ahoj-a", a.get_slug())
示例#4
0
 def test_upper(self):
     a = CommonArticle(name="ahoj a HOLA")
     self.assertEquals("ahoj-a-hola", a.get_slug())
示例#5
0
 def test_simple(self):
     a = CommonArticle(jmeno='ahoj a hola')
     self.assertEquals('ahoj-a-hola', a.get_slug())
示例#6
0
 def test_strip_noncombining(self):
     a = CommonArticle(jmeno='ahoj a 你好')
     self.assertEquals('ahoj-a', a.get_slug())
示例#7
0
 def test_combining(self):
     a = CommonArticle(jmeno='ahoj a ďíky')
     self.assertEquals('ahoj-a-diky', a.get_slug())
示例#8
0
 def test_upper(self):
     a = CommonArticle(jmeno='ahoj a HOLA')
     self.assertEquals('ahoj-a-hola', a.get_slug())