def test_get_all_nodes_chunked_only_root_in_volume(self):
        """Test chunked get_all_nodes with only one node, the root."""
        udf = self.factory.make_user_volume(
            owner=self.user._user, path='~/thepath/thename')
        udf_dao = DAOUserVolume(udf, self.user)
        udf_vgw = ReadWriteVolumeGateway(self.user, udf=udf_dao)
        # sort them in the right order
        nodes = udf_vgw.get_all_nodes()
        self.assertEqual(len(nodes), 1)

        # same but with the last generation
        nodes_limit_5 = udf_vgw.get_all_nodes(
            start_from_path=(nodes[-1].path, nodes[-1].name),
            max_generation=10, limit=5)
        self.assertEqual(nodes_limit_5, [])