def test_retrieving_book_middle_edge_case(self):
     self.assertEqual(
         booksdatasource.book(40), {
             'id': 40,
             'title': 'Three Men in a Boat (to Say Nothing of the Dog)',
             'publication_year': 1889
         })
 def test_retrieving_book_end_edge_case(self):
     self.assertEqual(
         booksdatasource.book(46), {
             'id': 46,
             'title': 'The Spy Who Came in From the Cold',
             'publication_year': 1963
         })
 def test_retrieving_book_end_edge_case(self):
     self.assertEqual(
         booksdatasource.book(24), {
             'id': 24,
             'last_name': 'Carré',
             'first_name': 'John',
             'birth_year': 1931,
             'death_year': None
         })
 def test_retrieving_book_middle_edge_case1(self):
     self.assertEqual(
         booksdatasource.book(6), {
             'id': 6,
             'last_name': 'Pratchett',
             'first_name': 'Terry',
             'birth_year': 1948,
             'death_year': 2015
         })
 def test_retrieving_book_middle_edge_case1(self):
     self.assertEqual(
         booksdatasource.book(2), {
             'id': 2,
             'last_name': 'Morrison',
             'first_name': 'Toni',
             'birth_year': 1931,
             'death_year': None
         })
 def test_retrieving_book_beginning_edge_case(self):
     self.assertEqual(
         booksdatasource.book(0), {
             'id': 0,
             'last_name': 'Willis',
             'first_name': 'Connie',
             'birth_year': 1945,
             'death_year': None
         })
 def test_retrieving_book_beginning_edge_case(self):
     self.assertEqual(booksdatasource.book(0), {
         'id': 0,
         'title': 'All Clear',
         'publication_year': 2010
     })
 def test_retrieving_book_beginning_edge_case(self):
     self.assertEqual(booksdatasource.book(0), "All Clear")
 def test_retrieving_book_end_edge_case(self):
     self.assertEqual(booksdatasource.book(46), "The Spy Who Came in From the Cold")
 def test_retrieving_book_middle_edge_case(self):
     self.assertEqual(booksdatasource.book(40), "Three Men in a Boat (to Say Nothing of the Dog)")