equal
deleted
inserted
replaced
|
1 from twisted.trial import unittest |
|
2 from mock import Mock |
|
3 import copy |
|
4 |
|
5 from iro.controller import pool |
|
6 |
|
7 class PoolTestCase(unittest.TestCase): |
|
8 |
|
9 def setUp(self): |
|
10 self._pools = copy.copy(pool.pools) |
|
11 |
|
12 def tearDown(self): |
|
13 del pool.pools[:] |
|
14 pool.pools.extend(self._pools) |
|
15 |
|
16 def testStartPool(self): |
|
17 del pool.pools[:] |
|
18 pool.pools.extend([Mock(),Mock()]) |
|
19 pool.startPool("blafo") |
|
20 for i in pool.pools: |
|
21 i.start.assert_called_with("blafo") |