Beispiel #1
0
    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])
Beispiel #2
0
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]