def test_filter_all(self): """Filtering with .all() returns the PkOnlyQueryset.""" pkvl = PkOnlyQueryset(self.cache, User, range(5)) pkall = pkvl.all() self.assertEqual(pkvl, pkall)