Esempio n. 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))
Esempio n. 2
0
 def test_has_archive_provider(self):
     assert_true(archiver_utils.has_archive_provider(self.src, self.user))
     wo = factories.NodeFactory(user=self.user)
     wo.delete_addon(settings.ARCHIVE_PROVIDER, auth=self.auth, _force=True)
     assert_false(archiver_utils.has_archive_provider(wo, self.user))
Esempio n. 3
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))
Esempio n. 4
0
 def test_has_archive_provider(self):
     assert_true(archiver_utils.has_archive_provider(self.src, self.user))
     wo = factories.NodeFactory(creator=self.user)
     wo.delete_addon(settings.ARCHIVE_PROVIDER, auth=self.auth, _force=True)
     assert_false(archiver_utils.has_archive_provider(wo, self.user))