

def test_connector_add_no_presto_user(self):
    self.setup_cluster(NoHadoopBareImageProvider(), self.STANDALONE_PRESTO_CLUSTER)
    for host in self.cluster.all_hosts():
        host.cluster.exec_cmd_on_host(host, ('userdel %s' % (PRESTO_STANDALONE_USER,)))
    self.assertRaisesRegexp(OSError, 'User presto does not exist', self.run_prestoadmin, 'connector add tpch')

dataset/ETHPy150Open prestodb/presto-admin/tests/product/test_connectors.py TestConnectors.test_connector_add_no_presto_user/VarMisuse@36/59 `self`->`host`