示例#1
0
 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))
示例#2
0
 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))