code: def test_status_up_to_date(
      dvc, mocker, capsys, cloud_opts, expected_message
  ):
      from dvc.repo.index import Index
  
      cli_args = parse_args(["status", *cloud_opts])
      assert cli_args.func == CmdDataStatus
  
      cmd = cli_args.func(cli_args)
  
      mocker.patch.dict(
          cmd.repo.config, {"core": {"remote": "default"}}
      )
      mocker.patch.object(
          cmd.repo, "status", autospec=True, return_value={}
      )
      mocker.patch(
          "dvc.repo.Repo.index", return_value=Index(dvc, [object()])
      )
      cmd.repo._reset = mocker.Mock()
  
      assert cmd.run() == 0
      captured = capsys.readouterr()
      assert expected_message in captured.out
  
file_path: dvc/tests/unit/command/test_status.py
imports: import json
  import pytest
  from dvc.cli import parse_args
  from dvc.commands.status import CmdDataStatus
label_desc: Use image node_id 5 for calling a global function with example usage: test_status_up_to_date(dvc, mocker, capsys, cloud_opts, expected_message) without return types