Ticket #8710: 8710-1.diff
File 8710-1.diff, 2.4 KB (added by , 16 years ago) |
---|
-
django/utils/text.py
207 207 208 208 >>> list(smart_split(r'This is "a person\'s" test.')) 209 209 [u'This', u'is', u'"a person\\\'s"', u'test.'] 210 211 212 213 210 >>> list(smart_split(r"Another 'person\'s' test.")) 211 [u'Another', u"'person's'", u'test.'] 212 >>> list(smart_split(r'A "\"funky\" style" test.')) 213 [u'A', u'""funky" style"', u'test.'] 214 214 """ 215 215 text = force_unicode(text) 216 216 for bit in smart_split_re.finditer(text): -
django/contrib/sites/tests.py
2 2 >>> from django.contrib.sites.models import Site 3 3 >>> from django.conf import settings 4 4 >>> Site(id=settings.SITE_ID, domain="example.com", name="example.com").save() 5 5 6 6 >>> # Make sure that get_current() does not return a deleted Site object. 7 7 >>> s = Site.objects.get_current() 8 8 >>> isinstance(s, Site) -
tests/regressiontests/templates/tests.py
720 720 'inheritance25': ("{% extends context_template.1 %}{% block first %}2{% endblock %}{% block second %}4{% endblock %}", {'context_template': [template.Template("Wrong"), template.Template("1{% block first %}_{% endblock %}3{% block second %}_{% endblock %}")]}, '1234'), 721 721 722 722 # Set up a base template to extend 723 723 'inheritance26': ("no tags", {}, 'no tags'), 724 724 725 726 725 # Inheritance from a template that doesn't have any blocks 726 'inheritance27': ("{% extends 'inheritance26' %}", {}, 'no tags'), 727 727 728 728 ### I18N ################################################################## 729 729