def test_parse_args_all_default_arguments(self): args = parse_args() assert_equals(args.sender, cfg.sender) assert_equals(args.recipients, cfg.recipients) assert_equals(args.url, cfg.url)
def test_parse_args_sender_specified(self): args = parse_args(['-s', '*****@*****.**']) assert_equals(args.sender, '*****@*****.**') assert_equals(args.recipients, cfg.recipients) assert_equals(args.url, cfg.url)
def test_parse_args_multiple_recipients_specified(self): args = parse_args(['-r', '*****@*****.**', '-r', '*****@*****.**']) assert_equals(args.sender, cfg.sender) assert_equals(args.recipients, ['*****@*****.**', '*****@*****.**']) assert_equals(args.url, cfg.url)
def test_parse_args_wrong_arguments(self): args = parse_args(['-l', '-m']) assert_equals(args.sender, cfg.sender) assert_equals(args.recipients, cfg.recipients) assert_equals(args.url, cfg.url)