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:
Andrew Resch 2010-05-08 20:01:46 -07:00
parent 0dc6c3ecfd
commit 245b799ccf

View File

@ -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