Пример #1
0
 def test_square_brackets(self):
     self.assertEqual(slugify('Buru [Namrole Bay]'), 'Buru')
Пример #2
0
 def test_palatal_nasal(self):
     self.assertEqual(slugify('Ɲua'), 'Njua')
Пример #3
0
 def get_slug_for(self, taxon, id):
     return "%s_%s" % (slugify(taxon), id)
Пример #4
0
 def test_ng(self):
     self.assertEqual(slugify("Siŋorakai"), "Singorakai")
Пример #5
0
 def test_j(self):
     self.assertEqual(slugify('xʝalasu'), 'Xjalasu')
     self.assertEqual(slugify('ʝalasu'), 'Jalasu')
Пример #6
0
 def test_colon(self):
     self.assertEqual(slugify('Kakiduge:n Ilongot'), 'Kakidugen_Ilongot')
Пример #7
0
 def test_apostrophe(self):
     self.assertEqual(slugify('V’ënen Taut'), 'Venen_Taut')
Пример #8
0
 def test_B(self):
     self.assertEqual(slugify('ßatarobu'), 'Vatarobu')
Пример #9
0
 def test_ng(self):
     self.assertEqual(slugify("Siŋorakai"), "Singorakai")
Пример #10
0
 def test_slash(self):
     self.assertEqual(slugify('Angkola / Mandailin'), 'Angkola')
Пример #11
0
 def test_apostrophe(self):
     self.assertEqual(slugify('V’ënen Taut'), 'Venen_Taut')
Пример #12
0
 def test_colon(self):
     self.assertEqual(slugify('Kakiduge:n Ilongot'), 'Kakidugen_Ilongot')
Пример #13
0
 def test_accents(self):
     self.assertEqual(slugify('Gimán'), 'Giman')
     self.assertEqual(slugify('Hanunóo'), 'Hanunoo')
Пример #14
0
 def test_dash(self):
     self.assertEqual(slugify('Aklanon - Bisayan'), 'Aklanon_Bisayan')
Пример #15
0
 def test_dash(self):
     self.assertEqual(slugify('Aklanon - Bisayan'), 'Aklanon_Bisayan')
Пример #16
0
 def test_capital_NG(self):
     self.assertEqual(slugify("Bawah Ŋgusumbatu"), "Bawah_Nggusumbatu")
Пример #17
0
 def test_accents(self):
     self.assertEqual(slugify('Gimán'), 'Giman')
     self.assertEqual(slugify('Hanunóo'), 'Hanunoo')
Пример #18
0
 def test_j(self):
     self.assertEqual(slugify('xʝalasu'), 'Xjalasu')
     self.assertEqual(slugify('ʝalasu'), 'Jalasu')
Пример #19
0
 def test_slash(self):
     self.assertEqual(slugify('Angkola / Mandailin'), 'Angkola')
Пример #20
0
 def test_e(self):
     self.assertEqual(slugify('Moaekɛ'), 'Moaeke')
Пример #21
0
 def test_B(self):
     self.assertEqual(slugify('ßatarobu'), 'Vatarobu')
Пример #22
0
 def test_palatal_nasal(self):
     self.assertEqual(slugify('Ɲua'), 'Njua')
Пример #23
0
 def test_capital_NG(self):
     self.assertEqual(slugify("Bawah Ŋgusumbatu"), "Bawah_Nggusumbatu")
Пример #24
0
 def test_another_apostrophe(self):
     self.assertEqual(slugify('‘Aragur'), 'Aragur')
Пример #25
0
 def test_e(self):
     self.assertEqual(slugify('Moaekɛ'), 'Moaeke')
Пример #26
0
 def test_brackets(self):
     self.assertEqual(slugify('Banggai (W.dialect)'), 'Banggai_Wdialect')
Пример #27
0
 def test_another_apostrophe(self):
     self.assertEqual(slugify('‘Aragur'), 'Aragur')
Пример #28
0
 def test_square_brackets(self):
     self.assertEqual(slugify('Buru [Namrole Bay]'), 'Buru')
Пример #29
0
 def get_taxon(self):
     if self.LID is None:
         return self.Language
     else:
         return "%s_%d" % (slugify(self.Language), self.LID)
Пример #30
0
 def test_brackets(self):
     self.assertEqual(slugify('Banggai (W.dialect)'), 'Banggai_Wdialect')