def METHOD_NAME(self):
    """
    Appending a traces with a time gap should raise a UserWarning/TypeError
    """
    rtr = RtTrace()
    tr = Trace(data=np.array([0, 1]))
    tr2 = Trace(data=np.array([5, 6]))
    tr2.stats.starttime = tr.stats.starttime + 10
    rtr.append(tr)
    # this raises UserWarning
    with warnings.catch_warnings(record=True):
        warnings.simplefilter('error', UserWarning)
        with pytest.raises(UserWarning):
            rtr.append(tr2)
    # append with gap_overlap_check=True will raise a TypeError
    with pytest.raises(TypeError):
        rtr.append(tr2, gap_overlap_check=True)