Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save renatomefi/607b182b7f8d328a8df960101d7354e3 to your computer and use it in GitHub Desktop.
Save renatomefi/607b182b7f8d328a8df960101d7354e3 to your computer and use it in GitHub Desktop.

./test/test_user.py

def test_user_is_present(host):
    user_name = 'app'
    group_name = 'app'
    home_dir = '/home/app'
    shell = '/sbin/halt'

    usr = host.user(user_name)
    assert user_name in usr.name
    assert group_name in usr.group
    assert home_dir in usr.home
    assert shell in usr.shell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment