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

Side by Side Diff: chrome/common/extensions/docs/server2/cron_servlet_test.py

Issue 14856006: Docserver: achieve online vs offline (cron vs instance) behaviour at the object (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 7 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 #!/usr/bin/env python
2 # Copyright 2013 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
5
6 import unittest
7
8 from local_file_system import LocalFileSystem
9 from cron_servlet import CronServlet
10 from server_instance import ServerInstance
11 from servlet import Request
12 from test_util import EnableLogging
13
14 # TODO(kalman): move stuff from integration_test.py into here.
15
16 def _CreateServerInstance():
17 return ServerInstance.CreateForTest(LocalFileSystem())
18
19 class CronServletTest(unittest.TestCase):
20 @EnableLogging('info')
21 def testIsSuccessful(self):
22 request = Request('trunk', {})
23 response = CronServlet(request).Get(_CreateServerInstance())
24 self.assertEqual(200, response.status)
25
26 if __name__ == '__main__':
27 unittest.main()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698