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