Skip to content

Commit

Permalink
Correct comments
Browse files Browse the repository at this point in the history
  • Loading branch information
terminalmage committed Nov 1, 2022
1 parent dfe5f08 commit f4757e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit/modules/test_linux_shadow.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ def test_set_password_malformed_shadow_entry(self):
assert lines[0] == original_lines[0]
assert lines[2] == original_lines[2]
# The second line should have the new password hash, and it should have
# gotten "fixed" by adding back in the missing hash.
# gotten "fixed" by adding another colon.
fixed = lines[1].split(":")
assert fixed[:2] == [user, password]
assert len(fixed) == 9
Expand Down Expand Up @@ -300,7 +300,7 @@ def test_set_password_malformed_shadow_entry(self):
assert lines[0] == original_lines[0]
assert lines[1] == original_lines[1]
# The third line should have the new password hash, and it should have
# gotten "fixed" by adding back in the missing hash.
# gotten "fixed" by reducing it to 9 fields instead of 10.
fixed = lines[2].split(":")
assert fixed[:2] == [user, password]
assert len(fixed) == 9
Expand Down

0 comments on commit f4757e4

Please sign in to comment.