def test_game_start(self): serial = FakeSerial() bus = Bus(serial) bus.start_game("a") self.assertEqual(serial.sendbuf, "ac\n")