def test_characters_transform(self): self.assertEqual(Encoder.duplicate_encode('din'), '(((')
def test_characters_upper_and_lower(self): self.assertEqual(Encoder.duplicate_encode("Success"), ')())())')
def test_characters_special_char(self): self.assertEqual(Encoder.duplicate_encode("Suc#cess"), ')()()())')
def test_characters_duplicated(self): self.assertEqual(Encoder.duplicate_encode('rece'), '()()')