Cleaned up Env.__setattr__() and Env.__setitem__() a bit updated their unit tests

This commit is contained in:
Jason Gerard DeRose
2008-12-22 17:29:11 -07:00
parent 014cca57ad
commit 6b055b435f
5 changed files with 120 additions and 76 deletions

View File

@@ -40,7 +40,7 @@ def test_set_languages():
assert not hasattr(c, 'languages')
c.languages = None
e = raises(StandardError, f, *langs)
assert str(e) == OVERRIDE_ERROR % ('context.languages', None, langs)
assert str(e) == OVERRIDE_ERROR % ('context', 'languages', None, langs)
del c.languages
# Test setting the languages: