Update ubuntu tracker icon test

This commit is contained in:
John Garland 2011-07-05 18:00:06 +10:00
parent cf891125e6
commit 37b9277c0e
2 changed files with 2 additions and 7 deletions

View File

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

BIN
deluge/tests/ubuntu.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB