@@ -243,7 +243,9 @@ def test_thai_time(self):
243243 def test_delete_tone (self ):
244244 self .assertEqual (delete_tone ("จิ้น" ), "จิน" )
245245 self .assertEqual (delete_tone ("เก๋า" ), "เกา" )
246- self .assertEqual (delete_tone ("จิ้น" ), deletetone ("จิ้น" ))
246+
247+ with self .assertRaises (DeprecationWarning ):
248+ deletetone ("จิ้น" )
247249
248250 def test_normalize (self ):
249251 self .assertEqual (normalize ("เเปลก" ), "แปลก" )
@@ -271,7 +273,6 @@ def test_isthai(self):
271273 self .assertEqual (isthai ("(ต.ค.)" , ignore_chars = ".()" ), True )
272274
273275 def test_is_native_thai (self ):
274- self .assertEqual (is_native_thai ("เลข" ), thaicheck ("เลข" ))
275276 self .assertEqual (is_native_thai (None ), False )
276277 self .assertEqual (is_native_thai ("" ), False )
277278 self .assertEqual (is_native_thai ("116" ), False )
@@ -291,3 +292,6 @@ def test_is_native_thai(self):
291292 self .assertEqual (is_native_thai ("เลข" ), False )
292293 self .assertEqual (is_native_thai ("เทเวศน์" ), False )
293294 self .assertEqual (is_native_thai ("เทเวศร์" ), False )
295+
296+ with self .assertRaises (DeprecationWarning ):
297+ thaicheck ("เลข" )
0 commit comments