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()")
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()"