'Testing whether starting the download of a corrupt torrent file raises an exception'

def test_start_download_corrupt(self):

    self.ltmgr.metadata_tmpdir = tempfile.mkdtemp(suffix=u'tribler_metainfo_tmpdir')
    corrupt_file = os.path.join(self.LIBTORRENT_FILES_DIR, 'corrupt_torrent.torrent')
    self.assertRaises(TorrentFileException, self.ltmgr.start_download, torrentfilename=corrupt_file)
