def getUnterminatedStringMessage(self, input_string):
    # Sadly json returns different indexes from different versions of python.
    # linux Python 2.7.3 json 2.0.9:
    # Unterminated string starting at: 'line 1 column 0 (char 0)'
    # Mac Python 2.7.5 json 2.0.9
    # Unterminated string starting at: 'line 1 column 1 (char 0)'
    # So we work out the right answer here.
    try:
      json.loads(input_string)
    except ValueError as e:
      if re.match('Unterminated string starting at: '
                  r'line \d+ column \d+ \(char \d+\)', e.message):
        return e.message
      else:
        raise ValueError('expected %r to raise a ValueError that looked like '
                         '"Unterminated string" but got %r' %
                         (input_string, e.message))
    raise ValueError(input_string % 'expected %r to raise a ValueError')
dataset/ETHPy150Open GoogleCloudPlatform/Data-Pipeline/app/src/pipelines/linter_test.py/LintPipelineTest.getUnterminatedStringMessage/swapped operands of `%`