Beispiel #1
0
 def test_parse_name_redacted(self):
     name1 = "DOE, JANE EMILY"
     name2 = "DOE, JOHN"
     assert ScraperUtils.parse_name(name1) == ('[redacted]', '[redacted]',
                                               '[redacted]')
     assert ScraperUtils.parse_name(name2) == ('[redacted]', '[redacted]',
                                               '[redacted]')
Beispiel #2
0
 def test_parse_name_error(self):
     name1 = None
     name2 = ''
     assert ScraperUtils.parse_name(name1) == (None, None, None)
     assert ScraperUtils.parse_name(name2) == (None, None, None)
Beispiel #3
0
 def test_parse_name(self):
     name1 = "DOE, JANE EMILY"
     name2 = "DOE, JOHN"
     assert ScraperUtils.parse_name(name1) == ('JANE', 'EMILY', 'DOE')
     assert ScraperUtils.parse_name(name2) == ('JOHN', None, 'DOE')