OLD | NEW |
(Empty) | |
| 1 #!/usr/bin/python |
| 2 |
| 3 # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. |
| 6 |
| 7 """Tests for Constrained Network Server.""" |
| 8 |
| 9 import unittest |
| 10 |
| 11 |
| 12 class PortAllocatorTest(unittest.TestCase): |
| 13 """Unit tests for the Port Allocator class.""" |
| 14 |
| 15 # TODO(dalecurtis): Find some mocking library or add mock flag to class. |
| 16 # TODO(dalecurtis): Test uncached Get() |
| 17 # TODO(dalecurtis): Test Get() calls cleanup. |
| 18 # TODO(dalecurtis): Test cleanup() w/ reduced expiry time. |
| 19 # TODO(dalecurtis): Test cleanup(all=true) |
| 20 pass |
| 21 |
| 22 |
| 23 class ConstrainedNetworkServerTest(unittest.TestCase): |
| 24 """End to end tests for ConstrainedNetworkServer system.""" |
| 25 |
| 26 # TODO(dalecurtis): Start/stop server method. |
| 27 # TODO(dalecurtis): Start server, verify invalid/missing parameters/files. |
| 28 # TODO(dalecurtis): Test normal and cached request. Verify redirect and port. |
| 29 # Verify that constraints are set (how?). Stop server, verify ports are |
| 30 # cleaned up. |
| 31 pass |
| 32 |
| 33 |
| 34 if __name__ == '__main__': |
| 35 unittest.main() |
OLD | NEW |