def testLoadCertificateFromBase64WhenBase64DecodeFail(self):
    self.mox.StubOutWithMock(x509.base64, 'b64decode')
    self.mox.StubOutWithMock(x509, 'BASE64_RE')

    x509.BASE64_RE.search('b64str').AndReturn(True)
    x509.base64.b64decode('b64str').AndRaise(TypeError)

    self.mox.ReplayAll()
    self.assertRaises(
        x509.PEMFormatError,
        x509.LoadCertificateFromBase64, 'b64str')
    self.mox.VerifyAll()
The mail may be sent with multiple recipients.
dataset/ETHPy150Open google/simian/src/tests/simian/auth/x509_test.py/X509ModuleTest.testLoadCertificateFromBase64WhenBase64DecodeFail--crossover with--dataset/ETHPy150Open django/django/tests/mail/test_sendtestemail.py/SendTestEmailManagementCommand.test_multiple_receivers