Skip to content

Commit

Permalink
Added failure test for partially applied nested values.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alice Bevan-McGregor committed Jan 30, 2011
1 parent edf8dca commit f1ffd69
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_bunch.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ def test_partial(self):
self.assertEqual(d1['foo.bar'], 1)
self.assertEqual(d1.foo.bar, 1)

self.assertRaises(AttributeError, lambda: d1.bar.foo)


class TestMultipleAttributeDictionary(TestCase):
Expand Down

0 comments on commit f1ffd69

Please sign in to comment.