def testGcsInputNullSink(self):
    pl = linter.PipelineLinter(
        '{"inputs": [{"type": "GcsInput", "object": "gs://b1/o1",'
        ' "sinks": [null]}]}')
    expect = {
        linter.PipelineLinter.CHECK_SYNTAX_VALID: {'pass': True},
        linter.PipelineLinter.CHECK_UNKNOWN_CONFIG_KEYS: {'pass': True},
        linter.PipelineLinter.CHECK_REQ_IO_STAGES: {'pass': True},
        'stages': {'inputs': [{
            linter.StageLinter.CHECK_TYPE_FMT % u'GcsInput': {'pass': True},
            'sinks' % linter.StageLinter.CHECK_FIELD_EXISTS_FMT:
            {'pass': False,
             'reason': linter.StageLinter.MSG_FIELD_INVALID_FMT % 'null'},
            linter.StageLinter.CHECK_FIELD_EXISTS_FMT % 'object':
            {'pass': True},
            linter.StageLinter.CHECK_FIELD_EXISTS_FMT % ['object', 'objects']:
            {'pass': True},
        }]}}
    self.assertFalse(pl.results.valid)
    self.assertSameStructure(expect, pl.results.results)
dataset/ETHPy150Open GoogleCloudPlatform/Data-Pipeline/app/src/pipelines/linter_test.py/LintPipelineTest.testGcsInputNullSink/swapped operands of `%`