'When libtorrent is not enabled, an exception should be thrown when downloading a torrentfile from a peer.'

def test_download_torrentmessage_from_peer(self):

    self.called = False
    def verify_download_torrentmessage_call(*args, **kwargs):
        self.called = True
    self.session.lm.rtorrent_handler.download_torrentmessage = verify_download_torrentmessage_call
    self.session.download_torrentmessage_from_peer('a', 'b', 'c')
    self.assertTrue(self.called)
