def test_interval_contains_inf():
    inf = Interval.infinite()
    assert (inf.contains(math.inf) is True)
    assert (inf.contains((- math.inf)) is True)
    assert (Interval.gte(0).contains(math.inf) is True)
    assert (Interval.gte(0).contains((- math.inf)) is False)
    assert (Interval.lte(0).contains(math.inf) is False)
    assert (Interval.lte(0).contains((- math.inf)) is True)
def test_interval_contains_inf():
    inf = Interval.infinite()
    assert (inf.contains(math.inf) is True)
    assert (inf.contains((- math.inf)) is True)
    assert (Interval.gte(0).contains(math.inf) is True)
    assert (Interval.gte(0).contains((- math.inf)) is False)
    assert (Interval.lte(0).contains(math.inf) is False)
    assert (Interval.lte(0).contains((- math.inf)) is True)