Exemplo n.º 1
0
 def test_get_creation_date(self):
     """ Test getting creation date from a valid torrent file. """
     for torrent_file in TORRENTS_INFO:
         tp = TorrentParser("test_data/%s" % torrent_file)
         self.assertEqual(
             tp.get_creation_date(),
             datetime.utcfromtimestamp(TORRENTS_INFO[torrent_file]["creation_date"]).isoformat(),
         )