diff --git a/test/test_modules.py b/test/test_modules.py index 23a1f2f2..15416344 100644 --- a/test/test_modules.py +++ b/test/test_modules.py @@ -10,7 +10,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -import crypt import datetime import os import re @@ -257,7 +256,8 @@ def test_nonexistent_user(host): def test_current_user(host): assert host.user().name == "root" pw = host.user().password - assert crypt.crypt("foo", pw) == pw + assert pw.startswith("$") + assert len(pw) == 73 def test_group(host):