def test_posts(self):
        self.assertEqual(Post.objects.count(), 9)
        self.assertEqual(Post.site_objects.count(), 5)

        site_posts_qs = Post.site_objects.all()
        for post in self.site_posts:
            self.assertTrue(post in site_posts_qs)
dataset/ETHPy150Open matagus/django-planet/planet/tests/test_managers.py/ManagersTestCase.test_posts/original