def test__str__():
    level = level_interval("1000/2000")
    parameter = LevelParameter(level)
    assert (parameter.__str__() == "Level range to subset over"
            f"\n first_level: 1000.0"
            f"\n last_level: 2000.0")
    assert parameter.__repr__() == parameter.__str__()
    assert parameter.__unicode__() == parameter.__str__()
Exemple #2
0
def test__str__():
    level = "1000/2000"
    parameter = LevelParameter(level)
    assert (
        parameter.__str__() == "Level range to subset over"
        f"\n start: 1000.0"
        f"\n end: 2000.0"
    )
    assert parameter.__repr__() == parameter.__str__()
    assert parameter.__unicode__() == parameter.__str__()