Module: deluge Branch: master Commit: 37b9277c0e1c7ff486133c0ce4b4108ee9f30a1c
Author: John Garland <[email protected]> Date: Tue Jul 5 18:00:06 2011 +1000 Update ubuntu tracker icon test --- deluge/tests/test_tracker_icons.py | 9 ++------- deluge/tests/ubuntu.ico | Bin 0 -> 1150 bytes 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/deluge/tests/test_tracker_icons.py b/deluge/tests/test_tracker_icons.py index c2eef68..4f8782d 100644 --- a/deluge/tests/test_tracker_icons.py +++ b/deluge/tests/test_tracker_icons.py @@ -39,16 +39,11 @@ class TrackerIconsTestCase(unittest.TestCase): return d def test_get_ubuntu_ico(self): - def check_data(icon, data): - self.assertNotEqual(icon.get_data(), data) - # ubuntu.com has inline css which causes HTMLParser issues + icon = TrackerIcon(os.path.join(dirname, "ubuntu.ico")) d = icons.get("www.ubuntu.com") d.addCallback(self.assertNotIdentical, None) - # as ubuntu's icon is 32x32 it may get resized and hence - # we can't test if the icon is equal to a reference one - # however we can test that the icon has some sort of data - d.addCallback(check_data, "") + d.addCallback(self.assertEquals, icon) return d def test_get_openbt_png(self): diff --git a/deluge/tests/ubuntu.ico b/deluge/tests/ubuntu.ico new file mode 100644 index 0000000..136b443 Binary files /dev/null and b/deluge/tests/ubuntu.ico differ -- 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.
