def testLoadRSAPrivateKeyFromPEMWhenSyntaxError(self):
    header = 'BEGIN RSA PRIVATE KEY'
    footer = 'END RSA PRIVATE KEY'

    pem_input = 'pem_input'
    pem_output = ['---header---', 'base64', '---footer---']

    self.mox.StubOutWithMock(x509, 'LoadPemGeneric')
    self.mox.StubOutWithMock(
        x509.tlslite_bridge, 'parsePEMKey')
    x509.LoadPemGeneric(pem_input, header, footer).AndReturn(pem_output)
    x509.tlslite_bridge.parsePEMKey(
        '\n'.join(pem_output)).AndRaise(SyntaxError)

    self.mox.ReplayAll()
    self.assertRaises(
        x509.RSAPrivateKeyPEMFormatError,
        x509.LoadRSAPrivateKeyFromPEM, pem_input)
    self.mox.VerifyAll()
Boring shading patterns, consisting of vertical lines.
dataset/ETHPy150Open google/simian/src/tests/simian/auth/x509_test.py/X509ModuleTest.testLoadRSAPrivateKeyFromPEMWhenSyntaxError--crossover with--dataset/ETHPy150Open adobe-type-tools/box-drawing/boxDrawing.py/verticalShade