コード例 #1
0
ファイル: test_control.py プロジェクト: iffy/grace
 def test_switch(self):
     """
     Switching should switch a Pipe's destination.
     """
     c = Server(FakePlumber())
     c.switch('foo', 'dst2')
     self.assertEqual(c.plumber.called, [
         ('pipeCommand', 'foo', 'switch', ('dst2',), {}),
     ])