def test_encode_dupliactes_double_vowels(self):
     test_string = "This sstringg has dupliccaatee consonaants and voowells."
     solution_string = "This |strin|g has dupli|caatee consonaants and voowe|ls."
     self.assertEqual(encode_duplicates(test_string), solution_string)
 def test_encode_duplicates_empty_string(self):
     self.assertEqual(encode_duplicates(""), "")
 def test_encode_duplicates_pdf_string(self):
     pdf_string = "Over hill, over dale, Thorough bush, thorough brier, Over park, over pale, \nThorough flood, thorough fire!"
     solution_string = "Over hi|l, over dale, Thorough bush, thorough brier, Over park, over pale, \nThorough flood, thorough fire!"
     self.assertEqual(encode_duplicates(pdf_string),solution_string)