def __init__(self, options={}): Common.__init__(self) self.__options = options self.stores = {} print options
def test_close_connection_without_connection(self): comm = Common() testutil.assertNotRaises(comm.close_connection)
def __assert_extract_validated_event_last_info(self, last_info, expect): comm = Common() target_func = \ testutil.returnPrivObj(comm, "__extract_validated_event_last_info") self.assertEquals(target_func(last_info), expect)
def __assert_parse_status_and_severity(self, status, expect): comm = Common() target_func = \ testutil.returnPrivObj(comm, "__parse_status_and_severity") self.assertEquals(target_func(status), expect)
def __assert_validate_object_id(self, host_id, expect=True): comm = Common() target_func = testutil.returnPrivObj(comm, "__validate_object_id") self.assertEquals(target_func(host_id), expect)
def __assert_parse_url(self, url, expect): comm = Common() target_func = testutil.returnPrivObj(comm, "__parse_url") self.assertEquals(target_func(url), expect)
def __assert_validate_object_id(self, host_id, expect=True): comm = Common() target_func = testutils.get_priv_attr(comm, "__validate_object_id") self.assertEquals(target_func(host_id), expect)
def __assert_parse_url(self, url, expect): comm = Common() target_func = testutils.get_priv_attr(comm, "__parse_url") self.assertEquals(target_func(url), expect)
def __init__(self, options={}): Common.__init__(self) self.__options = options self.stores = {} print options