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