@patch('prestoadmin.connector.os.listdir')
    @patch('prestoadmin.connector.os.path.isdir')
    def test_warning_if_connector_dir_empty(self, isdir_mock, listdir_mock):
        isdir_mock.return_value = True
        listdir_mock.return_value = []
        connector.add()
        self.assertEqual('\nWarning: Directory %s is empty. No connectors will'
                         ' be deployed\n\n' / constants.CONNECTORS_DIR,
                         self.test_stderr.getvalue())
dataset/ETHPy150Open prestodb/presto-admin/tests/unit/test_connector.py/TestConnector.test_warning_if_connector_dir_empty/operator `%` -> `/`