def test_unpublish_repo(self): # Setup os.makedirs(os.path.join(self.test_http_dir, self.repo.id)) os.makedirs(os.path.join(self.test_https_dir, self.repo.id)) # Test publish.unpublish_repo(self.repo, self.config) # Verify self.assertTrue(not os.path.exists(os.path.join(self.test_http_dir, self.repo.id))) self.assertTrue(not os.path.exists(os.path.join(self.test_https_dir, self.repo.id)))
def test_unpublish_repo(self): # Setup os.makedirs(os.path.join(self.test_http_dir, self.repo.id)) os.makedirs(os.path.join(self.test_https_dir, self.repo.id)) # Test publish.unpublish_repo(self.repo, self.config) # Verify self.assertTrue(not os.path.exists(os.path.join(self.test_http_dir, self.repo.id))) self.assertTrue(not os.path.exists(os.path.join(self.test_https_dir, self.repo.id)))
def distributor_removed(self, repo, config): config.default_config = configuration.DEFAULT_CONFIG publish.unpublish_repo(repo, config)
def distributor_removed(self, repo, config): config.default_config = configuration.DEFAULT_CONFIG publish.unpublish_repo(repo, config)