from cklib.args import get_arg_parser, ArgumentParser
from cloudkeeper_plugin_cleanup_aws_loadbalancers import CleanupAWSLoadbalancersPlugin


def test_args():
    arg_parser = get_arg_parser()
    CleanupAWSLoadbalancersPlugin.add_args(arg_parser)
    arg_parser.parse_args()
    assert ArgumentParser.args.cleanup_aws_loadbalancers is False
    assert ArgumentParser.args.cleanup_aws_loadbalancers_age == "7 days"

[((6, 17, 6, 33), 'cklib.args.get_arg_parser', 'get_arg_parser', ({}, {}), '()', False, 'from cklib.args import get_arg_parser, ArgumentParser\n'), ((7, 4, 7, 54), 'cloudkeeper_plugin_cleanup_aws_loadbalancers.CleanupAWSLoadbalancersPlugin.add_args', 'CleanupAWSLoadbalancersPlugin.add_args', ({(7, 43, 7, 53): 'arg_parser'}, {}), '(arg_parser)', False, 'from cloudkeeper_plugin_cleanup_aws_loadbalancers import CleanupAWSLoadbalancersPlugin\n')]