def test_del_enable_apbr_zone(self): status = apbr_config.enable_apbr_zone(device=self.mocked_obj, profile="p1", zone="z1") assert status is True status = apbr_config.enable_apbr_zone(device=self.mocked_obj, mode="delete", profile="p1", zone="z1") assert status is True
def test_set_enable_apbr_zone_without_zone(self): try: apbr_config.enable_apbr_zone(device=self.mocked_obj) except Exception as err: self.assertEqual(err.args[0], "Zone is a mandatory argument")
def test_del_enable_apbr_zone_without_profile(self): try: apbr_config.enable_apbr_zone(device=self.mocked_obj, zone="z1", mode="delete") except Exception as err: self.assertEqual(err.args[0], "Profile is a mandatory argument")
def test_del_enable_apbr_zone_without_device_handle(self): try: apbr_config.enable_apbr_zone(mode="delete") except Exception as err: self.assertEqual(err.args[0], "Device handle is a mandatory argument")