@@ -1135,7 +1135,8 @@ def test_title_with_three_part_name_last_initial_is_suffix_uppercase_no_period(s
11351135 hn = HumanName ("King John Alexander V" )
11361136 self .m (hn .title , "King" , hn )
11371137 self .m (hn .first , "John" , hn )
1138- self .m (hn .last , "V" , hn )
1138+ self .m (hn .last , "Alexander" , hn )
1139+ self .m (hn .suffix , "V" , hn )
11391140
11401141 def test_four_name_parts_with_suffix_that_could_be_initial_lowercase_no_period (self ):
11411142 hn = HumanName ("larry james edward johnson v" )
@@ -1144,19 +1145,20 @@ def test_four_name_parts_with_suffix_that_could_be_initial_lowercase_no_period(s
11441145 self .m (hn .last , "johnson" , hn )
11451146 self .m (hn .suffix , "v" , hn )
11461147
1147- @unittest .expectedFailure
11481148 def test_four_name_parts_with_suffix_that_could_be_initial_uppercase_no_period (self ):
11491149 hn = HumanName ("Larry James Johnson I" )
11501150 self .m (hn .first , "Larry" , hn )
11511151 self .m (hn .middle , "James" , hn )
11521152 self .m (hn .last , "Johnson" , hn )
1153- # if it's in upper case, we currently assume it's an initial
1154- # it's not really clear if we can assume it's one or the other.
1155- # If they really are the "first", they are probably used to using a
1156- # comma to avoid confusion. Humans know that "Johnson" is a last name,
1157- # but that wouldn't really be a "simple" nameparser.
11581153 self .m (hn .suffix , "I" , hn )
11591154
1155+ def test_roman_numeral_initials (self ):
1156+ hn = HumanName ("Larry V I" )
1157+ self .m (hn .first , "Larry" , hn )
1158+ self .m (hn .middle , "V" , hn )
1159+ self .m (hn .last , "I" , hn )
1160+ self .m (hn .suffix , "" , hn )
1161+
11601162 # tests for Rev. title (Reverend)
11611163 def test124 (self ):
11621164 hn = HumanName ("Rev. John A. Kenneth Doe" )
0 commit comments