Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.11/site-packages/nameparser/config/capitalization.py: 100%

Shortcuts on this page

r m x   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

4 statements  

1from nameparser.config._invariants import assert_normalized 

2 

3CAPITALIZATION_EXCEPTIONS = { 

4 'ii': 'II', 

5 'iii': 'III', 

6 'iv': 'IV', 

7 'md': 'M.D.', 

8 'phd': 'Ph.D.', 

9} 

10""" 

11Any pieces that are not capitalized by capitalizing the first letter. 

12""" 

13 

14 

15# Keys only -- the values are the exact-cased replacements, cased on purpose. 

16assert_normalized("CAPITALIZATION_EXCEPTIONS", CAPITALIZATION_EXCEPTIONS)