magic-removal: Improved 'properties' model unit tests to test for setting attribute on a property

git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1619 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2005-12-14 03:36:20 +00:00
parent bac086ba43
commit 8d4f9f73c8
1 changed files with 7 additions and 1 deletions

View File

@ -16,5 +16,11 @@ API_TESTS = """
>>> a = Person(first_name='John', last_name='Lennon')
>>> a.save()
>>> a.full_name
John Lennon
'John Lennon'
# The "full_name" property hasn't provided a "set" method.
>>> a.full_name = 'Paul McCartney'
Traceback (most recent call last):
...
AttributeError: can't set attribute
"""