def test_postgres_privilege(): postgres.installation() postgres.database("foobar") postgres.user("boo", "foo") postgres.privilege("all", user="******", database="foobar")
def test_postgres_user(): postgres.installation() postgres.user("boo", "foo") assert_in("boo", sudo('psql -c "\\du"', user="******"))