def test_bad_cert():
    'Make sure that the client detects that the test cert is self signed.'
    with mocks.Server() as server:
        try:
            assemblyline_client.get_client(server.address)
            assert False
        except assemblyline_client.ClientError as ce:
            assert (('CERTIFICATE_VERIFY_FAILED' in str(ce)) or ('certificate verify failed' in str(ce)))
Make sure that the client detects that the test cert is self signed.
def test_bad_cert():
    
    with mocks.Server() as server:
        try:
            assemblyline_client.get_client(server.address)
            assert False
        except assemblyline_client.ClientError as ce:
            assert (('CERTIFICATE_VERIFY_FAILED' in str(ce)) or ('certificate verify failed' in str(ce)))