def test_book_comment(self):
        self.assertEqual(BookComment.objects.all().count(), 5)
        self.assertEqual(BookComment.objects.filter(id_user=self.the_user1).count(), 3)
        self.assertEqual(BookComment.objects.filter(id_book=Book.objects.get(book_name='Second Book')).count(), 2)
        self.assertEqual(BookComment.objects.filter(id_book=Book.objects.get(book_name='Fourth Book')).count(), 2)
        self.assertEqual(BookComment.objects.filter(id_book=Book.objects.get(book_name='Sixth Book')).count(), 0)
        self.assertEqual(BookComment.objects.filter(id_user=self.the_user6).count(), 0)
        self.assertEqual(BookComment.objects.filter(id_book=Book.objects.get(book_name='Second Book'),
                                                    id_user=self.the_user1).count(), 1)

        BookComment.objects.create(id_book=Book.objects.get(book_name='Second Book'),
                                   id_user=self.the_user1,
                                   text='New comment user1 book 2')

        self.assertEqual(BookComment.objects.all().count(), 6)
        self.assertEqual(BookComment.objects.filter(id_user=self.the_user1).count(), 4)
        self.assertEqual(BookComment.objects.filter(id_book=Book.objects.get(book_name='Second Book')).count(), 3)
        self.assertEqual(BookComment.objects.filter(id_book=Book.objects.get(book_name='Second Book'),
                                                    id_user=self.the_user1).count(), 2)

        deleted_comment = BookComment.objects.get(id_book=Book.objects.get(book_name='Fourth Book'),
                                                  id_user=self.the_user5)
        deleted_comment.delete()

        self.assertEqual(BookComment.objects.all().count(), 5)
        self.assertEqual(BookComment.objects.filter(id_user=self.the_user5).count(), 0)
        self.assertEqual(BookComment.objects.filter(id_book=Book.objects.get(book_name='Fourth Book')).count(), 1)