Module: deluge
Branch: master
Commit: 245b799ccf124d1fa7d38006bceb906b0a3886db

Author: Andrew Resch <[email protected]>
Date:   Sat May  8 20:01:46 2010 -0700

Add test for tracker_icons for when requesting an icon for host that is "".  
This test results in an infinite loop.

---

 tests/test_tracker_icons.py |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/tests/test_tracker_icons.py b/tests/test_tracker_icons.py
index ae8f7fe..fd86d7b 100644
--- a/tests/test_tracker_icons.py
+++ b/tests/test_tracker_icons.py
@@ -60,3 +60,8 @@ class TrackerIconsTestCase(unittest.TestCase):
         d.addCallback(self.assertNotIdentical, None)
         d.addCallback(self.assertEquals, icon)
         return d
+
+    def test_get_empty_string_tracker(self):
+        d = icons.get("")
+        d.addCallback(self.assertEquals, None)
+        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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/deluge-commit?hl=en.

Reply via email to