@@ -2071,6 +2071,11 @@ def test_multiple_prefixes(self):
20712071 self .m (hn .first , "Mike" , hn )
20722072 self .m (hn .last , "van der Velt" , hn )
20732073
2074+ def test_2_same_prefixes_in_the_name (self ):
2075+ hh = HumanName ("Vincent van Gogh van Beethoven" )
2076+ self .m (hh .first , "Vincent" , hh )
2077+ self .m (hh .middle , "van Gogh" , hh )
2078+ self .m (hh .last , "van Beethoven" , hh )
20742079
20752080class HumanNameCapitalizationTestCase (HumanNameTestBase ):
20762081 def test_capitalization_exception_for_III (self ):
@@ -2343,12 +2348,12 @@ def test_initials_with_prefix_firstname(self):
23432348 def test_initials_with_prefix (self ):
23442349 hn = HumanName ("Alex van Johnson" )
23452350 self .m (hn .initials_list (), ["A" , "J" ], hn )
2346-
2351+
23472352 def test_constructor_first (self ):
23482353 hn = HumanName (first = "TheName" )
23492354 self .assertFalse (hn .unparsable )
23502355 self .m (hn .first , "TheName" , hn )
2351-
2356+
23522357 def test_constructor_middle (self ):
23532358 hn = HumanName (middle = "TheName" )
23542359 self .assertFalse (hn .unparsable )
@@ -2380,7 +2385,7 @@ def test_constructor_multiple(self):
23802385 self .m (hn .first , "TheName" , hn )
23812386 self .m (hn .last , "lastname" , hn )
23822387 self .m (hn .title , "mytitle" , hn )
2383-
2388+
23842389
23852390TEST_NAMES = (
23862391 "John Doe" ,
0 commit comments