File: test_url.py

package info (click to toggle)
python-easydev 0.10.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 504 kB
  • sloc: python: 2,130; javascript: 49; makefile: 13
file content (11 lines) | stat: -rw-r--r-- 442 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
from easydev import isurl_reachable
#from nose.plugins.attrib import attr


def test_isurl():
    assert isurl_reachable("www.google.com") == True
    assert isurl_reachable("http://www.google.com") == True
    #assert isurl_reachable("https://fr.yahoo.com") == False # moved
    assert isurl_reachable("wrong.co.ujj") == False
    assert isurl_reachable("http://wrong.co.ujj") == False
    assert isurl_reachable("http://wrong.co") == False