| Index: chrome/common/extensions/docs/server2/cron_servlet_test.py
|
| diff --git a/chrome/common/extensions/docs/server2/cron_servlet_test.py b/chrome/common/extensions/docs/server2/cron_servlet_test.py
|
| new file mode 100755
|
| index 0000000000000000000000000000000000000000..7731ac4dea269815ec46e8672b1e270dc324a527
|
| --- /dev/null
|
| +++ b/chrome/common/extensions/docs/server2/cron_servlet_test.py
|
| @@ -0,0 +1,27 @@
|
| +#!/usr/bin/env python
|
| +# Copyright 2013 The Chromium Authors. All rights reserved.
|
| +# Use of this source code is governed by a BSD-style license that can be
|
| +# found in the LICENSE file.
|
| +
|
| +import unittest
|
| +
|
| +from local_file_system import LocalFileSystem
|
| +from cron_servlet import CronServlet
|
| +from server_instance import ServerInstance
|
| +from servlet import Request
|
| +from test_util import EnableLogging
|
| +
|
| +# TODO(kalman): move stuff from integration_test.py into here.
|
| +
|
| +def _CreateServerInstance():
|
| + return ServerInstance.CreateForTest(LocalFileSystem())
|
| +
|
| +class CronServletTest(unittest.TestCase):
|
| + @EnableLogging('info')
|
| + def testIsSuccessful(self):
|
| + request = Request('trunk', {})
|
| + response = CronServlet(request).Get(_CreateServerInstance())
|
| + self.assertEqual(200, response.status)
|
| +
|
| +if __name__ == '__main__':
|
| + unittest.main()
|
|
|