btmon speeded up, all ICapTorrent backends clarified and fillobj cleaned

This commit is contained in:
Julien Veyssier 2013-03-15 18:20:54 +01:00
commit b907c8b266
10 changed files with 101 additions and 39 deletions

View file

@ -29,11 +29,10 @@ class BtmonTest(BackendTest):
def test_torrent(self):
torrents = list(self.backend.iter_torrents('spiderman'))
for torrent in torrents:
path, qs = urllib.splitquery(torrent.url)
assert path.endswith('.torrent')
assert torrent.id
assert torrent.name
assert torrent.description is NotLoaded
assert torrent.files is NotLoaded
# get the file of a random torrent
# from the list (getting them all would be too long)