Fix home directory test

How did I not see this before
This commit is contained in:
yuvipanda
2018-07-10 11:51:44 -07:00
parent 35d892a26e
commit d015b33f77

View File

@@ -25,7 +25,7 @@ def test_ensure_user():
# This raises exception if user doesn't exist # This raises exception if user doesn't exist
ent = pwd.getpwnam(username) ent = pwd.getpwnam(username)
# Home directory must also exist # Home directory must also exist
assert os.path.exists(ent.pw_shell) assert os.path.exists(ent.pw_dir)
# Run ensure_user again, should be a noop # Run ensure_user again, should be a noop
user.ensure_user(username) user.ensure_user(username)
# User still exists, after our second ensure_user call # User still exists, after our second ensure_user call