def test_add_all_fails_if_dir_not_there(self, isdir_mock, deploy_mock):
        isdir_mock.return_value = False
        self.assertRaisesRegexp(ConfigFileNotFoundError,
                                r'Cannot add catalogs because directory .+'
                                r' does not exist',
                                catalog.add)
        self.assertFalse(deploy_mock.called)