def test_others(self): record = { 'author': 'Claire Toffano-Nioche and others' } self.assertEqual( parse_authors_list(record), { 'author': [('Claire', 'Toffano-Nioche')] } )
def test_simple(self): record = { 'author': 'Claire Toffano-Nioche and Daniel Gautheret and Fabrice Leclerc' } self.assertEqual( parse_authors_list(record), { 'author': [('Claire', 'Toffano-Nioche'), ('Daniel', 'Gautheret'), ('Fabrice', 'Leclerc')] })
def test_simple(self): record = { 'author': 'Claire Toffano-Nioche and Daniel Gautheret and Fabrice Leclerc' } self.assertEqual( parse_authors_list(record), { 'author': [ ('Claire', 'Toffano-Nioche'), ('Daniel', 'Gautheret'), ('Fabrice', 'Leclerc') ] } )
def test_others(self): record = {'author': 'Claire Toffano-Nioche and others'} self.assertEqual(parse_authors_list(record), {'author': [('Claire', 'Toffano-Nioche')]})
def test_etal(self): self.assertEqual(parse_authors_list("Claire Toffano-Nioche and et al."), [("Claire", "Toffano-Nioche")])
def test_simple(self): self.assertEqual( parse_authors_list("Claire Toffano-Nioche and Daniel Gautheret and Fabrice Leclerc"), [("Claire", "Toffano-Nioche"), ("Daniel", "Gautheret"), ("Fabrice", "Leclerc")], )
def test_etal(self): self.assertEqual( parse_authors_list('Claire Toffano-Nioche and et al.'), [('Claire', 'Toffano-Nioche')])
def test_simple(self): self.assertEqual( parse_authors_list( 'Claire Toffano-Nioche and Daniel Gautheret and Fabrice Leclerc' ), [('Claire', 'Toffano-Nioche'), ('Daniel', 'Gautheret'), ('Fabrice', 'Leclerc')])