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

Unified 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, 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/docs/server2/server_instance_test.py
diff --git a/chrome/common/extensions/docs/server2/server_instance_test.py b/chrome/common/extensions/docs/server2/server_instance_test.py
new file mode 100755
index 0000000000000000000000000000000000000000..4c3ecfd66f8236c08083aeec2fa2542834117933
--- /dev/null
+++ b/chrome/common/extensions/docs/server2/server_instance_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 fake_fetchers import ConfigureFakeFetchers
+from server_instance import ServerInstance
+
+# TODO(kalman): Some real tests, most importantly the offline vs online
+# behaviour.
+
+class ServerInstanceTest(unittest.TestCase):
+ def setUp(self):
+ ConfigureFakeFetchers()
+
+ def testCreateOffline(self):
+ ServerInstance.CreateOffline('stable')
+ ServerInstance.CreateOffline('trunk')
+
+ def testCreateOnline(self):
+ ServerInstance.CreateOnline('stable')
+ ServerInstance.CreateOnline('trunk')
+
+if __name__ == '__main__':
+ unittest.main()

Powered by Google App Engine
This is Rietveld 408576698