@@ -1708,16 +1708,21 @@ def test_capitalization_with_Mac_as_hyphenated_names(self):
17081708 hn .capitalize ()
17091709 self .m (str (hn ), 'Donovan McNabb-Smith' , hn )
17101710
1711+ def test_capitization_middle_initial_is_also_a_conjunction (self ):
1712+ hn = HumanName ('scott e. werner' )
1713+ hn .capitalize ()
1714+ self .m (str (hn ), 'Scott E. Werner' , hn )
1715+
17111716 # Leaving already-capitalized names alone
1712- def test123 (self ):
1717+ def test_no_change_to_mixed_chase (self ):
17131718 hn = HumanName ('Shirley Maclaine' )
17141719 hn .capitalize ()
17151720 self .m (str (hn ), 'Shirley Maclaine' , hn )
17161721
17171722 def test_capitalize_diacritics (self ):
1718- hn = HumanName ('matth \xe4 us schmidt' )
1723+ hn = HumanName ('matthëus schmidt' )
17191724 hn .capitalize ()
1720- self .m (u (hn ), 'Matth \xe4 us Schmidt' , hn )
1725+ self .m (u (hn ), 'Matthëus Schmidt' , hn )
17211726
17221727 # http://code.google.com/p/python-nameparser/issues/detail?id=15
17231728 def test_downcasing_mac (self ):
@@ -1966,7 +1971,8 @@ def test_variations_of_TEST_NAMES(self):
19661971 name = sys .argv [1 ]
19671972 hn = HumanName (name , encoding = sys .stdout .encoding )
19681973 print ((repr (hn )))
1969- print ((hn .capitalize ()))
1974+ hn .capitalize ()
1975+ print ((repr (hn )))
19701976 else :
19711977 # if log.level > 0:
19721978 # for name in TEST_NAMES:
0 commit comments