def test_include_member_invalid_admin_state(self): ret = jinja_cfg._include_member( sample_configs.sample_member_tuple('sample_member_id_1', '10.0.0.99', admin_state_up=False)) self.assertFalse(ret)
def test_include_member_invalid_status(self): ret = jinja_cfg._include_member( sample_configs.sample_member_tuple('sample_member_id_1', '10.0.0.99', status='PENDING')) self.assertFalse(ret)
def test_include_member(self): ret = jinja_cfg._include_member( sample_configs.sample_member_tuple('sample_member_id_1', '10.0.0.99')) self.assertTrue(ret)
def test_include_member_invalid_admin_state(self): ret = jinja_cfg._include_member( sample_configs.sample_member_tuple('sample_member_id_1', '10.0.0.99', admin_state_up=False)) self.assertFalse(ret)
def test_include_member_invalid_status(self): ret = jinja_cfg._include_member( sample_configs.sample_member_tuple('sample_member_id_1', '10.0.0.99', status='PENDING')) self.assertFalse(ret)
def test_include_member(self): ret = jinja_cfg._include_member( sample_configs.sample_member_tuple('sample_member_id_1', '10.0.0.99')) self.assertTrue(ret)