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',), {}), ])