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))
Test LoadPemGeneric().
dataset/ETHPy150Open google/simian/src/tests/simian/auth/x509_test.py/X509ModuleTest.testLoadPemGeneric