Module: deluge
Branch: 1.3-stable
Commit: 2d09035dc47e96354cc5d40ffe91e42c3ed15f4a

Author: Calum Lind <calumlind+del...@gmail.com>
Date:   Thu Jul  7 21:36:47 2011 +0100

Fix httpdownloader Tests

---

 tests/test_httpdownloader.py |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/tests/test_httpdownloader.py b/tests/test_httpdownloader.py
index 33e08a4..b386ca3 100644
--- a/tests/test_httpdownloader.py
+++ b/tests/test_httpdownloader.py
@@ -60,10 +60,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://deluge-torrent.org/httpdownloader.php?test=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
 

-- 
You received this message because you are subscribed to the Google Groups 
"deluge-commit" group.
To post to this group, send email to deluge-commit@googlegroups.com.
To unsubscribe from this group, send email to 
deluge-commit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/deluge-commit?hl=en.

Reply via email to