summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCalum Lind <calumlind+deluge@gmail.com>2011-07-07 01:22:51 +0100
committerCalum Lind <calumlind+deluge@gmail.com>2011-07-07 01:22:51 +0100
commit13528fe7f82cee095fd3ae2d900c21261c4eb124 (patch)
tree07745662a624af2672b57a4e335444840425ebee
parent99358dcbb03f76e8acaee11b04d4c89bb7c9504f (diff)
downloaddeluge-13528fe7f82cee095fd3ae2d900c21261c4eb124.tar.gz
deluge-13528fe7f82cee095fd3ae2d900c21261c4eb124.tar.bz2
deluge-13528fe7f82cee095fd3ae2d900c21261c4eb124.zip
Fix httpdownloader Tests
-rw-r--r--deluge/tests/test_httpdownloader.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/deluge/tests/test_httpdownloader.py b/deluge/tests/test_httpdownloader.py
index 76d89cd6e..6e9c677a0 100644
--- a/deluge/tests/test_httpdownloader.py
+++ b/deluge/tests/test_httpdownloader.py
@@ -132,10 +132,11 @@ class DownloadFileTestCase(unittest.TestCase):
d.addCallback(self.assertContains, "This file should be called renamed")
return d
- def test_download_with_rename_fail(self):
+ def test_download_with_rename_exists(self):
+ open('renamed', 'w').close()
url = "http://localhost:51242/rename?filename=renamed"
d = download_file(url, "original")
- d.addCallback(self.assertEqual, "original")
+ d.addCallback(self.assertEqual, "renamed-1")
d.addCallback(self.assertContains, "This file should be called renamed")
return d