from password import Password #part 1 print (Password.getNextPassword("vzbxkghb")) #part 2 print (Password.getNextPassword(Password.getNextPassword("vzbxkghb")))
def test_from_problem(self): self.assertEqual("abcdffaa", Password.getNextPassword("abcdefgh")) # takes 3 minutes to run self.assertEqual("ghjaabcc", Password.getNextPassword("ghijklmn"))