def testGetError(self):
    self.mox.StubOutWithMock(uploadpkg.handlers, 'IsHttps')
    uploadpkg.handlers.IsHttps(self.c).AndReturn(True)
    self.MockDoMunkiAuth()
    self.request.get('mode').AndReturn('error')
    self.request.get('msg', None).AndReturn('msg')
    self.response.set_status(400)
    self.response.out.write('msg')

    self.mox.ReplayAll()
    self.c.get()
    self.mox.VerifyAll()
Test get() with error mode parameter.
dataset/ETHPy150Open google/simian/src/tests/simian/mac/munki/handlers/uploadpkg_test.py/UploadPackageTest.testGetError