def test_private_notice_routed(self, mock_privateNotice, mock_channelNotice, mock__fire_command, mock__fire_event): firefly_irc = FireflyIRC(Server(self.hostname, self.config)) firefly_irc.noticed('[email protected]', 'test_nick', 'Hello, world!') self.assertEqual(mock_privateNotice.call_count, 1) mock_channelNotice.assert_not_called() mock__fire_command.assert_not_called()