Exemplo n.º 1
0
 def test_others(self):
     record = {
         'author': 'Claire Toffano-Nioche and others'
     }
     self.assertEqual(
         parse_authors_list(record),
         {
             'author': [('Claire', 'Toffano-Nioche')]
         }
     )
Exemplo n.º 2
0
 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')]
         })
Exemplo n.º 3
0
 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')
             ]
         }
     )
Exemplo n.º 4
0
 def test_others(self):
     record = {'author': 'Claire Toffano-Nioche and others'}
     self.assertEqual(parse_authors_list(record),
                      {'author': [('Claire', 'Toffano-Nioche')]})
Exemplo n.º 5
0
 def test_etal(self):
     self.assertEqual(parse_authors_list("Claire Toffano-Nioche and et al."), [("Claire", "Toffano-Nioche")])
Exemplo n.º 6
0
 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")],
     )
Exemplo n.º 7
0
 def test_etal(self):
     self.assertEqual(
         parse_authors_list('Claire Toffano-Nioche and et al.'),
         [('Claire', 'Toffano-Nioche')])
Exemplo n.º 8
0
 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')])