def test_added_books(self):
        self.assertEqual(AddedBook.objects.all().count(), 8)

        self.assertEqual(AddedBook.objects.filter(id_user=self.the_user1).count(), 3)
        self.assertEqual(AddedBook.objects.filter(id_user=self.the_user2).count(), 3)
        self.assertEqual(AddedBook.objects.filter(id_user=self.the_user5).count(), 1)
        self.assertEqual(AddedBook.objects.filter(id_user=self.the_user6).count(), 1)

        self.assertEqual(AddedBook.objects.filter(id_book=Book.objects.get(book_name='Sixth Book')).count(), 4)
        self.assertEqual(AddedBook.objects.filter(id_book=Book.objects.get(book_name='Third Book')).count(), 2)
        self.assertEqual(AddedBook.objects.filter(id_book=Book.objects.get(book_name='Fifth Book')).count(), 0)

        self.assertEqual(AddedBook.objects.filter(id_user=self.the_user1,
                                                  id_book=Book.objects.get(book_name='Third Book')).count(), 1)
        self.assertEqual(AddedBook.objects.filter(id_user=self.the_user1,
                                                  id_book=Book.objects.get(book_name='Sixth Book')).count(), 1)
        self.assertEqual(AddedBook.objects.filter(id_user=self.the_user2,
                                                  id_book=Book.objects.get(book_name='Sixth Book')).count(), 1)
        self.assertEqual(AddedBook.objects.filter(id_user=self.the_user2,
                                                  id_book=Book.objects.get(book_name='Fourth Book')).count(), 0)