예제 #1
0
파일: tests.py 프로젝트: remy-r/evennia
 def test_obfuscate_whisper(self):
     self.assertEqual(rplanguage.obfuscate_whisper(text, level=0.0), text)
     assert (rplanguage.obfuscate_whisper(text, level=0.1).startswith(
         '-utom-t-d t-sting is -dv-nt-g-ous for - numb-r of r--sons:t-sts m-y b- -x-cut-d Continuously'))
     assert(rplanguage.obfuscate_whisper(text, level=0.5).startswith(
         '--------- --s---- -s -----------s f-- - ------ -f ---s--s:--s-s '))
     self.assertEqual(rplanguage.obfuscate_whisper(text, level=1.0), "...")
예제 #2
0
파일: tests.py 프로젝트: taishan90/evennia
 def test_obfuscate_whisper(self):
     self.assertEqual(rplanguage.obfuscate_whisper(text, level=0.0), text)
     assert (rplanguage.obfuscate_whisper(text, level=0.1).startswith(
         '-utom-t-d t-sting is -dv-nt-g-ous for - numb-r of r--sons:t-sts m-y b- -x-cut-d Continuously'))
     assert(rplanguage.obfuscate_whisper(text, level=0.5).startswith(
         '--------- --s---- -s -----------s f-- - ------ -f ---s--s:--s-s '))
     self.assertEqual(rplanguage.obfuscate_whisper(text, level=1.0), "...")