blob: 56e4c6319a0fb1cf2dcd8a924c48d1785332290a [file] [log] [blame]
# Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is govered by a BSD-style
# license that can be found in the LICENSE file or at
"""Unittests for the projectexport servlet."""
import unittest
from framework import permissions
from services import service_manager
from testing import testing_helpers
from project import projectexport
class ProjectExportTest(unittest.TestCase):
def setUp(self): = service_manager.Services()
self.servlet = projectexport.ProjectExport(
'req', 'res',
def testAssertBasePermission(self):
mr = testing_helpers.MakeMonorailRequest(
self.servlet.AssertBasePermission, mr)
mr.auth.user_pb.is_site_admin = True