You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

field_tests.py 258B

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