from os.path import isfile def test_nextcloud_not_upgraded(): assert not isfile('/var/lib/risotto/srv/nextcloud/keys/config.UPGRADED.php')