>>> from url_format import check_url >>> check_url('http://magraner') 'colon error' >>> check_url('3http://magraner:1200') 'scheme error' >>> check_url('http://magraner:index') 'port error' >>> check_url('http://magraner:1200') 'correct'