Beispiel #1
0
 def test_reviewer_allowed(self):
     self.assertTrue(allowed(self.request, self.file))
Beispiel #2
0
 def test_unlisted_owner_allowed(self):
     addon, file_ = self.get_unlisted_addon_file()
     assert allowed(self.request, file_)
Beispiel #3
0
 def test_reviewer_allowed(self):
     self.assertTrue(allowed(self.request, self.file))
Beispiel #4
0
 def test_unlisted_reviewer_unallowed(self):
     addon, file_ = self.get_unlisted_addon_file()
     with pytest.raises(http.Http404):
         allowed(self.request, file_)