Ejemplo n.º 1
0
 def test_add_duplicate_download(self):
     """
     Testing whether a DuplicateDownloadException is raised when a download is added twice
     """
     self.lm.downloads = {"abcd": None}
     tdef = TorrentDef()
     tdef.metainfo_valid = True
     tdef.infohash = "abcd"
     self.lm.add(tdef, None)