mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +00:00
Add test for tracker_icons for when requesting an icon for host that is "". This test results in an infinite loop.
This commit is contained in:
parent
0dc6c3ecfd
commit
245b799ccf
1 changed files with 5 additions and 0 deletions
|
@ -60,3 +60,8 @@ class TrackerIconsTestCase(unittest.TestCase):
|
||||||
d.addCallback(self.assertNotIdentical, None)
|
d.addCallback(self.assertNotIdentical, None)
|
||||||
d.addCallback(self.assertEquals, icon)
|
d.addCallback(self.assertEquals, icon)
|
||||||
return d
|
return d
|
||||||
|
|
||||||
|
def test_get_empty_string_tracker(self):
|
||||||
|
d = icons.get("")
|
||||||
|
d.addCallback(self.assertEquals, None)
|
||||||
|
return d
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue