~free.ekanayaka/storm/any-expr

« back to all changes in this revision

Viewing changes to tests/cache.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:
 
1
from unittest import defaultTestLoader
 
2
 
1
3
from storm.properties import Int
2
4
from storm.info import get_obj_info
3
5
from storm.cache import Cache, GenerationalCache
379
381
 
380
382
 
381
383
def test_suite():
382
 
    return unittest.TestLoader().loadTestsFromName(__name__)
 
384
    return defaultTestLoader.loadTestsFromName(__name__)