def test_private_action_routed(self, mock_privateAction, mock_channelAction, mock__fire_command, mock__fire_event): firefly_irc = FireflyIRC(Server(self.hostname, self.config)) firefly_irc.action('[email protected]', 'test_nick', 'waves') self.assertEqual(mock_privateAction.call_count, 1) mock_channelAction.assert_not_called() mock__fire_command.assert_not_called()