summaryrefslogtreecommitdiffstats
path: root/deluge/tests/test_torrent.py
diff options
context:
space:
mode:
authorCalum Lind <calumlind+deluge@gmail.com>2017-02-12 11:26:31 +0000
committerCalum Lind <calumlind+deluge@gmail.com>2017-02-22 12:45:11 +0000
commite3b8aaf276c8731069c4e2beb403edadfbeb8524 (patch)
tree4d4a7ad5a967c5a81ff21b6ed3434cff1e5e76d2 /deluge/tests/test_torrent.py
parent1d9733014a0531fbf19da9262e2e2b2a7cc61284 (diff)
downloaddeluge-e3b8aaf276c8731069c4e2beb403edadfbeb8524.tar.gz
deluge-e3b8aaf276c8731069c4e2beb403edadfbeb8524.tar.bz2
deluge-e3b8aaf276c8731069c4e2beb403edadfbeb8524.zip
[Tests] Markup byte strings to fix tests
Diffstat (limited to 'deluge/tests/test_torrent.py')
-rw-r--r--deluge/tests/test_torrent.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/deluge/tests/test_torrent.py b/deluge/tests/test_torrent.py
index 3dae04c22..db38701d6 100644
--- a/deluge/tests/test_torrent.py
+++ b/deluge/tests/test_torrent.py
@@ -18,6 +18,7 @@ import deluge.component as component
import deluge.core.torrent
import deluge.tests.common as common
from deluge._libtorrent import lt
+from deluge.common import convert_to_utf8
from deluge.core.core import Core
from deluge.core.rpcserver import RPCServer
from deluge.core.torrent import Torrent
@@ -179,6 +180,7 @@ class TorrentTestCase(BaseTestCase):
filename = common.get_test_data_file('test_torrent.file.torrent')
with open(filename) as _file:
filedump = _file.read()
+ resume_data = convert_to_utf8(resume_data)
torrent_id = yield self.core.torrentmanager.add(state=torrent_state, filedump=filedump,
resume_data=lt.bencode(resume_data))
torrent = self.core.torrentmanager.torrents[torrent_id]