def test_load_client_ca_invalid(self, context, tmpdir):
    '\n        `Context.load_client_ca` raises an Error if the ca file is invalid.\n        '
    ca_file = tmpdir.join('test.pem')
    ca_file.write('')
    with pytest.raises(Error) as e:
        context.load_client_ca(str(ca_file).encode('ascii'))
    assert ('PEM routines' == e.value.args[0][0][0])
`Context.load_client_ca` raises an Error if the ca file is invalid.
def test_load_client_ca_invalid(self, context, tmpdir):
    '\n        \n        '
    ca_file = tmpdir.join('test.pem')
    ca_file.write()
    with pytest.raises(Error) as e:
        context.load_client_ca(str(ca_file).encode('ascii'))
    assert ('PEM routines' == e.value.args[0][0][0])