File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -76,16 +76,13 @@ def test_external_verbose_output(self):
76
76
self .assertEqual (f .read (), "# Logged by usefulibs.external_verbose_output()\n \n Test Data\n 1 2 3\n a b c" )
77
77
def test_get_hash (self ):
78
78
""" @MKM12345 """
79
- input_password = "password123"
80
- stored_hash = _usefulibs .get_hash (input_password )
81
-
82
- user_input = input ("Enter a password: " )
83
- hashed_input = _usefulibs .get_hash (user_input )
84
-
85
- if hashed_input == stored_hash :
86
- print ("Correct" )
79
+ password = "myPassword123"
80
+ password_hash = get_hash (password )
81
+ user_input = input ("Please enter your password: " )
82
+ if get_hash (user_input ) == password_hash :
83
+ print ("Welcome!" )
87
84
else :
88
- print ("Wrong " )
85
+ print ("Incorrect password " )
89
86
90
87
91
88
if __name__ == "__main__" :
You can’t perform that action at this time.
0 commit comments