def test_warning_if_connector_dir_empty(self, isdir_mock, listdir_mock):
        isdir_mock.return_value = True
        listdir_mock.return_value = []
        catalog.add()
        self.assertEqual('\nWarning: Directory %s is empty. No catalogs will'
                         ' be deployed\n\n' % get_catalog_directory(),
                         self.test_stderr.getvalue())