except AssertionError, e: pass try: status.get_status_element(None) self.fail("Invalid get_status_element does not throw exception") except AssertionError,e: pass try: status.remove_status_element(None) self.fail("Invalid remove_status_element does not throw exception") except AssertionError,e: pass elem = Status.StatusElement("name", "description") try: status.remove_status_element(elem) self.fail("Invalid remove_status_element does not throw exception") except Status.NoSuchElementException,e: pass def testPolicy_ON_CHANGE(self): status = Status.get_status_holder("UnitTest") status.reset() reporter = TestOnChangeStatusReporter("On change") status.add_reporter(reporter) i = status.create_status_element("TestInteger")