def test_list_webapp_snapshots(self, site_op_mock): cmd_mock = mock.MagicMock() cli_ctx_mock = mock.MagicMock() cmd_mock.cli_ctx = cli_ctx_mock # action list_snapshots(cmd_mock, 'rg', 'web1', None) # assert site_op_mock.assert_called_with(cli_ctx_mock, 'rg', 'web1', 'list_snapshots', None)