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 zcmbtTF-U?z6h0wrXh2%=gWTOuMP3Q1^p4@(e)D1xSNhzO#Vrly7< zhl)tVOdB%7|3}gOQeW>o|C2+0Eb8R*-v92t_r7=cP6!wOJRZUS1H#`SM4u31h`}!Q zH2ge?30~{zY5?C(qjx&xWrP_w46*?mKCcr;`FK6ZC^HnVb;epy?N>AV+>G-!Jc?fw zDVhDG!MQYIVy|1{M|E!hY>FcB0$tr!DDn6~W6N1GOEs$2h(?#5m8K~8%=0m-iXYg{ zQ)us<_D@Yx<1$gEmCaXL4d)dXGdSQjb5E}2WR6m~M!xwB;d?5OliCrhV%2G6v6&w+ zVvHn1*0pnN$ds`oL(d~^)Q_=yV(M#m%(awO=thmh3mJWnw8#BfIyf_BZOCV%2tHzB zY((EAzeVFu{0GFsy(s