Esempio n. 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]')
Esempio n. 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)
Esempio n. 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')