def testLoadPemGeneric(self):
    header = 'BEGIN'
    footer = 'END'

    input =  '\n\n\n-----BEGIN-----\nhello\n-----END-----\n\n\n'
    expected = [
        '-----BEGIN-----',
        'hello',
        '-----END-----',
    ]

    self.assertEqual(expected, x509.LoadPemGeneric(input, header, footer))
Parse a given volumes state specification for later use in
dataset/ETHPy150Open google/simian/src/tests/simian/auth/x509_test.py/X509ModuleTest.testLoadPemGeneric--crossover with--dataset/ETHPy150Open saltstack/salt/salt/states/dockerio.py/_parse_volumes