]> ToastFreeware Gitweb - philipp/winterrodeln/wradmin.git/commitdiff
Added further test for wradmin.model.validators.PhoneInfo
authorphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Mon, 6 Apr 2009 20:22:51 +0000 (20:22 +0000)
committerphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Mon, 6 Apr 2009 20:22:51 +0000 (20:22 +0000)
git-svn-id: http://www.winterrodeln.org/svn/servermediawiki/trunk/wradmin@446 7aebc617-e5e2-0310-91dc-80fb5f6d2477

wradmin/wradmin/tests/test_models.py

index 542e0ff1171932d92b15ded71b969ce0c14b9281..01ca6cf1fd25ff41e5c7be6674abba302fe10ca0 100644 (file)
@@ -67,7 +67,7 @@ def test_PhoneInfo():
     assert v.to_python(u'0512/12345678 (Schnee Alm)') == u'+43/512/12345678 (Schnee Alm)'
     assert v.to_python(u'+43/512/12345678 (Schnee Alm)') == u'+43/512/12345678 (Schnee Alm)'
     assert v.to_python(u'0512/12345678 (Schnee (Winter) Alm)') == u'+43/512/12345678 (Schnee (Winter) Alm)'
-    for n in [u'0512/12345678', u'+43/512/12345678', u'+43 (Schnee Alm)', u'0512/12345678 ()', u'(Schnee Alm)', u'(Schnee Alm) +43/512/12345678', u'+43/512/12345678 Schnee Alm']:
+    for n in [u'0512/12345678', u'+43/512/12345678', u'+43 (Schnee Alm)', u'0512/12345678 ()', u'(Schnee Alm)', u'(Schnee Alm) +43/512/12345678', u'+43/512/12345678 Schnee Alm', u'(Schnee Alm)  +43/512/12345678']:
         try:
             v.to_python(n) # has to throw an exception
             assert False, u"The telephone info '%s' should throw an exception." % n