summaryrefslogtreecommitdiffstats
path: root/deluge/tests/test_torrent.py
diff options
context:
space:
mode:
authorbendikro <bro.devel@gmail.com>2016-10-30 12:11:36 +0100
committerCalum Lind <calumlind+deluge@gmail.com>2016-11-01 12:28:08 +0000
commite26a3dc0e7e017d6324966bed76ebab4d80bdaeb (patch)
tree79379293e37eabe0e4abf1cad7388a3546e41beb /deluge/tests/test_torrent.py
parente827420569cfdc25eaa5b0ab9c48353ed5ce4888 (diff)
downloaddeluge-e26a3dc0e7e017d6324966bed76ebab4d80bdaeb.tar.gz
deluge-e26a3dc0e7e017d6324966bed76ebab4d80bdaeb.tar.bz2
deluge-e26a3dc0e7e017d6324966bed76ebab4d80bdaeb.zip
[Tests] Move test torrents into data subdir
Diffstat (limited to 'deluge/tests/test_torrent.py')
-rw-r--r--deluge/tests/test_torrent.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/deluge/tests/test_torrent.py b/deluge/tests/test_torrent.py
index 572e1afa5..7d864c067 100644
--- a/deluge/tests/test_torrent.py
+++ b/deluge/tests/test_torrent.py
@@ -52,7 +52,7 @@ class TorrentTestCase(BaseTestCase):
self.assertEquals(torrent.state, state)
def get_torrent_atp(self, filename):
- filename = common.rpath(filename)
+ filename = common.get_test_data_file(filename)
with open(filename, 'rb') as _file:
info = lt.torrent_info(lt.bdecode(_file.read()))
atp = {"ti": info}
@@ -117,7 +117,7 @@ class TorrentTestCase(BaseTestCase):
@defer.inlineCallbacks
def test_torrent_error_data_missing(self):
options = {"seed_mode": True}
- filename = common.rpath("test_torrent.file.torrent")
+ filename = common.get_test_data_file("test_torrent.file.torrent")
with open(filename) as _file:
filedump = base64.encodestring(_file.read())
torrent_id = yield self.core.add_torrent_file(filename, filedump, options)
@@ -133,7 +133,7 @@ class TorrentTestCase(BaseTestCase):
@defer.inlineCallbacks
def test_torrent_error_resume_original_state(self):
options = {"seed_mode": True, "add_paused": True}
- filename = common.rpath("test_torrent.file.torrent")
+ filename = common.get_test_data_file("test_torrent.file.torrent")
with open(filename) as _file:
filedump = base64.encodestring(_file.read())
torrent_id = yield self.core.add_torrent_file(filename, filedump, options)
@@ -178,7 +178,7 @@ class TorrentTestCase(BaseTestCase):
is_finished=True,
)
- filename = common.rpath("test_torrent.file.torrent")
+ filename = common.get_test_data_file("test_torrent.file.torrent")
with open(filename) as _file:
filedump = _file.read()
torrent_id = yield self.core.torrentmanager.add(state=torrent_state, filedump=filedump,