| 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()
|
|
|