def test_author_with_family_name_only_works_fine(self):
     book = Book()
     book.authors = [Author(given='Jo', family=None)]
     csl = ReferenceToCSL.convert(book)
     first_author = csl['author'][0]
     self.assertEqual(first_author, {'family': None, 'given': 'Jo'})
 def test_single_author_is_converted(self):
     book = Book()
     book.authors = [Author(given='Jo', family='Nesbø')]
     csl = ReferenceToCSL.convert(book)
     first_author = csl['author'][0]
     self.assertEqual(first_author, {'family': 'Nesbø', 'given': 'Jo'})