def testBadSection(self):
    pl = linter.PipelineLinter('{"input": [{"type": "UnknownInput"}]}')
    expect = {
        linter.PipelineLinter.CHECK_SYNTAX_VALID: {'pass': True},
        linter.PipelineLinter.CHECK_UNKNOWN_CONFIG_KEYS: {
            'pass': False,
            'reason':
            linter.PipelineLinter.MSG_UNKNOWN_CONFIG_KEYS_FMT % u'input'},
        linter.PipelineLinter.CHECK_REQ_IO_STAGES: {
            'pass': False,
            'reason': linter.PipelineLinter.MSG_MISSING_IO_STAGES}}
    self.assertFalse(pl.results.valid)
    self.assertSameStructure(expect, pl.results.results)
dataset/ETHPy150Open GoogleCloudPlatform/Data-Pipeline/app/src/pipelines/linter_test.py/LintPipelineTest.testBadSection/original