Added further test in TestUrl.test_from_str.
authorphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Fri, 27 Jan 2017 22:03:39 +0000 (22:03 +0000)
committerphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Fri, 27 Jan 2017 22:03:39 +0000 (22:03 +0000)
git-svn-id: http://www.winterrodeln.org/svn/wrpylib/trunk@2595 7aebc617-e5e2-0310-91dc-80fb5f6d2477

tests/test_wrvalidators.py

index b9129071f7145ab943e3046db00194e915c89251..7f540bc9a176ac34c059e6c64d4e7a86a3b69407 100644 (file)
@@ -350,6 +350,8 @@ class TestUrl(unittest.TestCase):
             url_from_str('mailto:office@example.com')
         with self.assertRaises(ValueError):
             url_from_str('/wiki/Arzler_Alm/')
+        with self.assertRaises(ValueError):
+            url_from_str('www.winterrodeln.org/wiki/Arzler_Alm/')
 
     def test_to_str(self):
         self.assertEqual('http://www.winterrodeln.org/wiki/Arzler_Alm/', url_to_str('http://www.winterrodeln.org/wiki/Arzler_Alm/'))