def testTooFewArgumentsFails(self):
    # No arguments for set, but valid subcommand.
    stderr = self.RunGsUtil(self._set_ver_cmd, return_stderr=True,
                            expected_status=1)
    self.assertIn('command requires at least', stderr)

    # No arguments for get, but valid subcommand.
    stderr = self.RunGsUtil(self._get_ver_cmd, return_stderr=True,
                            expected_status=1)
    self.assertIn('command requires at least', stderr)

    # Neither arguments nor subcommand.
    stderr = self.RunGsUtil(['versioning'], return_stderr=True,
                            expected_status=1)
    self.assertIn('command requires at least', stderr)
Ensures versioning commands fail with too few arguments.
dataset/ETHPy150Open GoogleCloudPlatform/gsutil/gslib/tests/test_versioning.py/TestVersioning.testTooFewArgumentsFails