def testHashSelectAlg(self):
    tmp_file = self.CreateTempFile(contents=self._TEST_FILE_CONTENTS)
    stdout_crc = self.RunCommand('hash', args=['-c', tmp_file],
                                 return_stdout=True)
    stdout_md5 = self.RunCommand('hash', args=['-m', tmp_file],
                                 return_stdout=True)
    stdout_both = self.RunCommand('hash', args=['-c', '-m', tmp_file],
                                  return_stdout=True)
    for stdout in (stdout_crc, stdout_both):
      self.assertIn(self._TEST_FILE_B64_CRC % '\tHash (crc32c):\t\t%s', stdout)
    for stdout in (stdout_md5, stdout_both):
      self.assertIn('\tHash (md5):\t\t%s' % self._TEST_FILE_B64_MD5, stdout)
    self.assertNotIn('md5', stdout_crc)
    self.assertNotIn('crc32c', stdout_md5)
dataset/ETHPy150Open GoogleCloudPlatform/gsutil/gslib/tests/test_hash.py/TestHash.testHashSelectAlg/swapped operands of `%`