def METHOD_NAME(temp_cwd):
    """
    Test to check if repo2docker throws image_name validation error on -image-name argument being invalid. Based on the
    regex definitions first part of registry domain cannot contain uppercase characters
    """
    image_name = "Test.com/valid_name:1.0.0"
    args_list = ["--no-run", "--no-build", "--image-name", image_name]
    expected = invalid_image_name_template % image_name
    assert not validate_arguments(builddir, args_list, expected)