Selaa lähdekoodia

Add integration test for ExtendedURLField

master
David Winterbottom 12 vuotta sitten
vanhempi
commit
1b5adc86d1

+ 0
- 0
tests/integration/forms/__init__.py Näytä tiedosto


+ 10
- 0
tests/integration/forms/field_tests.py Näytä tiedosto

1
+from oscar.forms import fields
2
+from django.test import TestCase
3
+
4
+
5
+class TestExtendedURLField(TestCase):
6
+    """ExtendedURLField"""
7
+
8
+    def test_validates_local_urls(self):
9
+        field = fields.ExtendedURLField(verify_exists=True)
10
+        field.clean('/')

Loading…
Peruuta
Tallenna