'Deliberately try to parse invalid RSA keys.'

def testInvalidRSAPrivateKey(self):

    config.CONFIG.Initialize(data='\n[PrivateKeys]\nserver_key    =    -----BEGIN    PRIVATE    KEY-----\n                                MIICdwIBADANBgkqhkiG9w0BAQEFAASCAmEwggJdAgEAAoGBAMdgLNxyvDnQsuqp\n                                jzITFeE6mjs3k1I=\n                                -----END    PRIVATE    KEY-----\nexecutable_signing_private_key    =    -----BEGIN    RSA    PRIVATE    KEY-----\n                                MIIBOgIBAAJBALnfFW1FffeKPs5PLUhFOSkNrr9TDCODQAI3WluLh0sW7/ro93eo\n                                -----END    RSA    PRIVATE    KEY-----\n')
    config.CONFIG.context = []
    with self.assertRaises(config_lib.ConfigFormatError):
        config.CONFIG.Get('PrivateKeys.server_key')
    with self.assertRaises(config_lib.ConfigFormatError):
        config.CONFIG.Get('PrivateKeys.executable_signing_private_key')
