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