def testGetReturnUploadUrl(self):
    self.mox.StubOutWithMock(uploadpkg.handlers, 'IsHttps')
    uploadpkg.handlers.IsHttps(self.c).AndReturn(True)
    self.MockDoMunkiAuth()
    self.request.get('mode').AndReturn('')
    self.request.get('msg', None).AndReturn(None)
    self.mox.StubOutWithMock(uploadpkg.blobstore, 'create_upload_url')
    uploadpkg.blobstore.create_upload_url(
        '/uploadpkg', gs_bucket_name=None).AndReturn('/url')
    self.response.out.write('/url').AndReturn(None)

    self.mox.ReplayAll()
    self.c.get()
    self.mox.VerifyAll()
Test get() with no params, returns upload url.
dataset/ETHPy150Open google/simian/src/tests/simian/mac/munki/handlers/uploadpkg_test.py/UploadPackageTest.testGetReturnUploadUrl