def test_equals():
    d = Interval(1, 3)
    assert d.equals((1, 3))
    assert (not d.equals(None))
    assert (not d.equals(Interval.closed_open(1, 3)))
    assert Interval.empty().equals(Interval.empty())
    assert Interval.open(1, 1).equals(Interval.open(2, 2))
    assert Interval.infinite().equals(Interval.infinite())
def test_equals():
    d = Interval(1, 3)
    assert d.equals((1, 3))
    assert (not d.equals(None))
    assert (not d.equals(Interval.closed_open(1, 3)))
    assert Interval.empty().equals(Interval.empty())
    assert Interval.open(1, 1).equals(Interval.open(2, 2))
    assert Interval.infinite().equals(Interval.infinite())