def test_stop(self): """ Stop should mirror plumber.stop """ c = Server(FakePlumber()) c.stop() self.assertEqual(c.plumber.called, ['stop'])