예제 #1
0
 def test_deflood(self):
     # Assert flooding removal.
     self.assertEqual(text.deflood("NIIICE!!!", n=1), "NICE!")
     self.assertEqual(text.deflood("NIIICE!!!", n=2), "NIICE!!")
     print("pattern.text.deflood()")
예제 #2
0
 def test_deflood(self):
     # Assert flooding removal.
     self.assertEqual(text.deflood("NIIICE!!!", n=1), "NICE!")
     self.assertEqual(text.deflood("NIIICE!!!", n=2), "NIICE!!")
     print "pattern.text.deflood()"