Skip to content

Commit 4058399

Browse files
committed
add failing test for issue #27
1 parent 982b170 commit 4058399

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1378,6 +1378,14 @@ def test_potential_suffix_that_is_also_last_name_with_suffix_comma(self):
13781378
self.m(hn.last, "Ma", hn)
13791379
self.m(hn.suffix, "III, Jr", hn)
13801380

1381+
# https://github.com/derek73/python-nameparser/issues/27
1382+
@unittest.expectedFailure
1383+
def test_king(self):
1384+
hn = HumanName("Dr King Jr")
1385+
self.m(hn.title, "Dr", hn)
1386+
self.m(hn.last, "King", hn)
1387+
self.m(hn.suffix, "Jr, Jr", hn)
1388+
13811389
class HumanNameTitleTestCase(HumanNameTestBase):
13821390

13831391
def test_last_name_is_also_title(self):

0 commit comments

Comments
 (0)