def test_archive_provider_for(self): provider = self.src.get_addon(settings.ARCHIVE_PROVIDER) assert_equal(archiver_utils.archive_provider_for(self.src, self.user)._id, provider._id)