def METHOD_NAME(self):
    # Test setting TLS by setting ssl as dict.
    class Transport(pyamqp.Transport):
        Connection = MagicMock()
    Connection(transport=Transport, ssl={'a': 1, 'b': 2}).connect()
    Transport.Connection.assert_called_once()
    _, kwargs = Transport.Connection.call_args
    assert kwargs['ssl'] == {'a': 1, 'b': 2}