File: test_getimagesize.py

package info (click to toggle)
python-textile 1%3A4.0.1-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 452 kB
  • sloc: python: 2,620; sh: 7; makefile: 4
file content (10 lines) | stat: -rw-r--r-- 383 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
from textile.tools.imagesize import getimagesize
import pytest

PIL = pytest.importorskip('PIL')

@pytest.mark.skip(reason="Requires network access")
def test_imagesize():
    assert getimagesize("http://www.google.com/intl/en_ALL/images/logo.gif") == (276, 110)
    assert getimagesize("http://bad.domain/") == ''
    assert getimagesize("http://www.google.com/robots.txt") is None