mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-26 10:05:19 +00:00
Fix httpdownloader Tests
This commit is contained in:
parent
99358dcbb0
commit
13528fe7f8
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user