def test_delete_tone(self): self.assertEqual(delete_tone("จิ้น"), "จิน") self.assertEqual(delete_tone("เก๋า"), "เกา") # Commented out until this unittest bug get fixed: # https://bugs.python.org/issue29620 # with self.assertWarns(DeprecationWarning): # deletetone("จิ้น") self.assertEqual(deletetone("จิ้น"), delete_tone("จิ้น"))
def test_deletetone(self): self.assertEqual(deletetone("จิ้น"), "จิน") self.assertEqual(deletetone("เก๋า"), "เกา")