def test_user_notice(self, mock_notice):
        firefly_irc = FireflyIRC(Server(self.hostname, self.config))

        host = containers.Hostmask('[email protected]')
        firefly_irc.notice(host, 'Hello, world!')

        mock_notice.assert_called_once_with(firefly_irc, 'test_nick', 'Hello, world!')
    def test_channel_notice(self, mock_notice):
        firefly_irc = FireflyIRC(Server(self.hostname, self.config))

        dest = containers.Destination(firefly_irc, '#testchan')
        firefly_irc.notice(dest, 'Hello, world!')

        mock_notice.assert_called_once_with(firefly_irc, '#testchan', 'Hello, world!')