Changeset 8746
- Timestamp:
- 08/30/08 14:25:40 (3 months ago)
- Files:
-
- django/trunk/django/contrib/sites/tests.py (modified) (1 diff)
- django/trunk/django/utils/text.py (modified) (1 diff)
- django/trunk/tests/regressiontests/templates/tests.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/contrib/sites/tests.py
r8160 r8746 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() django/trunk/django/utils/text.py
r7814 r8746 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 >>> 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.']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) django/trunk/tests/regressiontests/templates/tests.py
r8716 r8746 721 721 722 722 # Set up a base template to extend 723 'inheritance26': ("no tags", {}, 'no tags'),724 725 # Inheritance from a template that doesn't have any blocks726 'inheritance27': ("{% extends 'inheritance26' %}", {}, 'no tags'),723 'inheritance26': ("no tags", {}, 'no tags'), 724 725 # Inheritance from a template that doesn't have any blocks 726 'inheritance27': ("{% extends 'inheritance26' %}", {}, 'no tags'), 727 727 728 728 ### I18N ##################################################################
