def test_get_books_from_author(self): borges = Author("Jorge Luis Borges", "AR") ficciones = Book("Ficciones", author=borges) aleph = Book("The Aleph", author=borges) self.assertEqual(borges.get_books(), [ficciones, aleph])
def test_get_books_from_author(): borges = Author("Jorge Luis Borges", "AR") ficciones = Book("Ficciones", author=borges) aleph = Book("The Aleph", author=borges) assert borges.get_books() == [ficciones, aleph]