def test_reviewer_allowed(self): self.assertTrue(allowed(self.request, self.file))
def test_unlisted_owner_allowed(self): addon, file_ = self.get_unlisted_addon_file() assert allowed(self.request, file_)
def test_unlisted_reviewer_unallowed(self): addon, file_ = self.get_unlisted_addon_file() with pytest.raises(http.Http404): allowed(self.request, file_)