def test_parse_addresses_raises(): with pytest.raises(InvalidEmail): assert parse_addresses('[email protected], bar@domain .com')
def test_parse_addresses(addresses, expected_addresses): assert parse_addresses(addresses) == expected_addresses