Module: deluge Branch: 1.3-stable Commit: b3eed8a1f02c681e74eb84cf4487f6f541269a6a
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 f96e07b..9e69f2f 100644 --- a/tests/test_tracker_icons.py +++ b/tests/test_tracker_icons.py @@ -59,3 +59,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.
