

def test_connector_name_not_found(self):
    expected.setup_cluster(NoHadoopBareImageProvider(), self.STANDALONE_PRESTO_CLUSTER)
    self.run_prestoadmin('server start')
    self.cluster.write_content_to_host('connector.noname=example', os.path.join(constants.CONNECTORS_DIR, 'example.properties'), self.cluster.master)
    expected = self.fatal_error('Catalog configuration example.properties does not contain connector.name')
    self.assertRaisesRegexp(OSError, expected, self.run_prestoadmin, 'connector add example')

dataset/ETHPy150Open prestodb/presto-admin/tests/product/test_connectors.py TestConnectors.test_connector_name_not_found/VarMisuse@10/16 `self`->`expected`