def test_round():
    assert (Interval(1.2, 3.4).round() == (1, 3))
    assert (Interval(1.2, 3.4).round(method=math.floor) == (1, 3))
    assert (Interval(1.2, 3.4).round(method=math.ceil) == (2, 4))
    assert (Interval.open_closed(1.2, 3.4).round() == Interval.open_closed(1, 3))
    assert (Interval.closed_open(1.2, 3.4).round() == Interval.closed_open(1, 3))
    assert (Interval.empty().round() == Interval.empty())
def test_round():
    assert (Interval(1.2, 3.4).round() == (1, 3))
    assert (Interval(1.2, 3.4).round(method=math.floor) == (1, 3))
    assert (Interval(1.2, 3.4).round(method=math.ceil) == (2, 4))
    assert (Interval.open_closed(1.2, 3.4).round() == Interval.open_closed(1, 3))
    assert (Interval.closed_open(1.2, 3.4).round() == Interval.closed_open(1, 3))
    assert (Interval.empty().round() == Interval.empty())