~free.ekanayaka/storm/any-expr

« back to all changes in this revision

Viewing changes to tests/store/base.py

  • Committer: James Henstridge
  • Date: 2010-02-08 11:36:58 UTC
  • mfrom: (340.1.2 storm.bug-394428)
  • Revision ID: james@jamesh.id.au-20100208113658-0a89ya5sam1gb5s1
Disallow setting a ReferenceSet attribute.

Previously setting a ReferenceSet attribute succeeded, but did not 
update the reference set, which could hide bugs.
[r=jkakar,therve] [f=394428]

Show diffs side-by-side

added added

removed removed

Lines of Context:
3510
3510
                          (400, 20, "Title 100"),
3511
3511
                         ])
3512
3512
 
 
3513
    def test_reference_set_assign_fails(self):
 
3514
        foo = self.store.get(FooRefSet, 20)
 
3515
        try:
 
3516
            foo.bars = []
 
3517
        except FeatureError:
 
3518
            pass
 
3519
        else:
 
3520
            self.fail("FeatureError not raised")
 
3521
 
3513
3522
    def test_reference_set_explicitly_with_wrapper(self):
3514
3523
        self.add_reference_set_bar_400()
3515
3524