Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(313)

Side by Side Diff: appengine/monorail/tracker/test/issueexport_test.py

Issue 1868553004: Open Source Monorail (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Rebase Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 # Copyright 2016 The Chromium Authors. All rights reserved.
2 # Use of this source code is govered by a BSD-style
3 # license that can be found in the LICENSE file or at
4 # https://developers.google.com/open-source/licenses/bsd
5
6 """Unittests for the issueexport servlet."""
7
8 import unittest
9
10 from framework import permissions
11 from services import service_manager
12 from testing import testing_helpers
13 from tracker import issueexport
14
15
16 class IssueExportTest(unittest.TestCase):
17
18 def setUp(self):
19 self.services = service_manager.Services()
20 self.servlet = issueexport.IssueExport(
21 'req', 'res', services=self.services)
22
23 def testAssertBasePermission(self):
24 mr = testing_helpers.MakeMonorailRequest(
25 perms=permissions.OWNER_ACTIVE_PERMISSIONSET)
26 self.assertRaises(permissions.PermissionException,
27 self.servlet.AssertBasePermission, mr)
28 mr.auth.user_pb.is_site_admin = True
29 self.servlet.AssertBasePermission(mr)
OLDNEW
« no previous file with comments | « appengine/monorail/tracker/test/issueentry_test.py ('k') | appengine/monorail/tracker/test/issueimport_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698