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

Side by Side Diff: chrome/common/extensions/docs/server2/server_instance_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 fake_fetchers import ConfigureFakeFetchers
9 from server_instance import ServerInstance
10
11 # TODO(kalman): Some real tests, most importantly the offline vs online
12 # behaviour.
13
14 class ServerInstanceTest(unittest.TestCase):
15 def setUp(self):
16 ConfigureFakeFetchers()
17
18 def testCreateOffline(self):
19 ServerInstance.CreateOffline('stable')
20 ServerInstance.CreateOffline('trunk')
21
22 def testCreateOnline(self):
23 ServerInstance.CreateOnline('stable')
24 ServerInstance.CreateOnline('trunk')
25
26 if __name__ == '__main__':
27 unittest.main()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698