def test_link_archive_provider(self): wo = factories.NodeFactory(user=self.user) wo.delete_addon(settings.ARCHIVE_PROVIDER, auth=self.auth, _force=True) archiver_utils.link_archive_provider(wo, self.user) assert_true(archiver_utils.has_archive_provider(wo, self.user))
def test_link_archive_provider(self): wo = factories.NodeFactory(creator=self.user) wo.delete_addon(settings.ARCHIVE_PROVIDER, auth=self.auth, _force=True) archiver_utils.link_archive_provider(wo, self.user) assert_true(archiver_utils.has_archive_provider(wo, self.user))