def testLoadPemGenericWhenMissingFooter(self):
    header = 'BEGIN'
    footer = 'END BLAH'

    input =  '\n\n\n-----BEGIN-----\nhello\n-----END-----\n\n\n'

    self.assertRaises(
        x509.FooterMissingPEMFormatError, x509.LoadPemGeneric,
        input, header, footer)
Test LoadPemGeneric().
dataset/ETHPy150Open google/simian/src/tests/simian/auth/x509_test.py/X509ModuleTest.testLoadPemGenericWhenMissingFooter