def test_validates_flatpages_urls(self):
        FlatPage.objects.create(title='test page', url='/test/page/')
        try:
            self.validator('/test/page/')
        except __HOLE__:
            self.fail('ExtendedURLValidator raises ValidationError'
                      'unexpectedly!')
dataset/ETHPy150Open django-oscar/django-oscar/tests/integration/core/validator_tests.py/TestExtendedURLValidatorWithVerifications.test_validates_flatpages_urls