From 37b9277c0e1c7ff486133c0ce4b4108ee9f30a1c Mon Sep 17 00:00:00 2001 From: John Garland Date: Tue, 5 Jul 2011 18:00:06 +1000 Subject: [PATCH] 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(-) create mode 100644 deluge/tests/ubuntu.ico diff --git a/deluge/tests/test_tracker_icons.py b/deluge/tests/test_tracker_icons.py index c2eef68c4..4f8782d4f 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 0000000000000000000000000000000000000000..136b443228bb98b16ee8fc285aab8dc1e4a98eaf GIT binary patch literal 1150 zcmZQzU}Ruq5D);-3Je)63=Con3=A3!3=9Gc3=9ek5OD?u1_lQf1_ohn2nO-7VG)nJ z>LMO@dqq6%o)_`B`yYxyY>=2bHa##g5s$k?A|7|YLG{4&BGVwbBA9v@E#h&PO~m8w zc0Bt2uiW$b|Lw=W{woFF2bl*_%Z8+XGO}KAue<*ztbG6f#Fg*=FWma^-#YE_|Bqk( z{{Qp$|9^{=MA*EcIo8TVE3cBk&ylyAhVF&4{{Gk3>o8b{{)yiPTmJq(DBeNo2Na%I($55tUJxcW z{a(BO6KnbfnE}G&<{yw=7)Hv!XQ1gC6gD6>*8KZ{pMl{4I|D-lBLu_D!9~N=f%Jg% F0ssLjGdBPL literal 0 HcmV?d00001