コード例 #1
0
 def test_invalid_string_url(self):
     """Test that a given string is an invalid url"""
     test_url = 'test'
     urlized_url = simple_urlize(test_url)
     eq_(urlized_url, test_url)
コード例 #2
0
 def test_invalid_https_url(self):
     """Test that a given string is an invalid https url"""
     test_url = 'https://test'
     urlized_url = simple_urlize(test_url)
     eq_(urlized_url, test_url)
コード例 #3
0
 def test_valid_https_url(self):
     """Test that a given string is a valid https url"""
     test_url = 'https://www.test.com'
     urlized_url = simple_urlize(test_url)
     eq_(urlized_url, '<a href="%s">%s</a>' % (test_url, test_url))
コード例 #4
0
ファイル: test_helpers.py プロジェクト: GVRGowtham/mozillians
 def test_invalid_string_url(self):
     """Test that a given string is an invalid url"""
     test_url = 'test'
     urlized_url = simple_urlize(test_url)
     eq_(urlized_url, test_url)
コード例 #5
0
ファイル: test_helpers.py プロジェクト: GVRGowtham/mozillians
 def test_invalid_https_url(self):
     """Test that a given string is an invalid https url"""
     test_url = 'https://test'
     urlized_url = simple_urlize(test_url)
     eq_(urlized_url, test_url)
コード例 #6
0
ファイル: test_helpers.py プロジェクト: GVRGowtham/mozillians
 def test_valid_https_url(self):
     """Test that a given string is a valid https url"""
     test_url = 'https://www.test.com'
     urlized_url = simple_urlize(test_url)
     eq_(urlized_url, '<a href="%s">%s</a>' % (test_url, test_url))