mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-11 20:14:13 +00:00
Update ubuntu tracker icon test
This commit is contained in:
parent
cf891125e6
commit
37b9277c0e
@ -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
BIN
deluge/tests/ubuntu.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
Loading…
x
Reference in New Issue
Block a user