def test_main_list(self, mock_logging: Mock, *mocks: Any) -> None:
        main()

        mock_logging.info.assert_has_calls([
            call("OpenSearch 1.0.0"),
            call("OpenSearch 1.0.1"),
            call("OpenSearch 1.1.0"),
            call("OpenSearch 1.1.1")
        ])

        mock_logging.info.assert_has_calls([call("OpenSearch 2.0.0")])

        mock_logging.info.assert_has_calls(
            [call("OpenSearch Dashboards 1.1.0")])

        mock_logging.info.assert_has_calls([call("Done.")])
 def test_main_update(self, mock_manifests_opensearch_dashboards: Mock,
                      mock_manifests_opensearch: Mock, *mocks: Any) -> None:
     main()
     mock_manifests_opensearch_dashboards.return_value.update.assert_called(
     )
     mock_manifests_opensearch.return_value.update.assert_called()
    def test_usage(self) -> None:
        with self.assertRaises(SystemExit):
            main()

        out, _ = self.capfd.readouterr()
        self.assertTrue(out.startswith("usage:"))
 def test_main_update(self, mock_manifests_opensearch_dashboards,
                      mock_manifests_opensearch, *mocks):
     main()
     mock_manifests_opensearch_dashboards.return_value.update.assert_called(
     )
     mock_manifests_opensearch.return_value.update.assert_called()