Changeset 5766 for main


Ignore:
Timestamp:
13 Feb 2011, 14:51:35 (14 years ago)
Author:
uli
Message:

Add test for addApplicantsContainer method.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/tests/test_root.py

    r5684 r5766  
    4747                interfaces.IApplicantsRoot, ApplicantsRoot())
    4848            )
     49        return
     50
     51    def test_add_container(self):
     52        root = ApplicantsRoot()
     53        fake_container = object()
     54        root.addApplicantsContainer(fake_container, name='foo')
     55        self.assertTrue(root['foo'] ==  fake_container)
    4956        return
    5057
     
    140147        self.assertTrue('Updating site at my_site.' in log)
    141148        return
    142        
     149
    143150def suite():
    144151    suite = unittest.TestSuite()
Note: See TracChangeset for help on using the changeset viewer.