示例#1
0
def test_get_y_coordinates_nan():
    shape = Shape({
        'x_number': 500,
        'x_start': 84000,
        'x_step': 500,
        'x_stop': 155000,
        'y_number': np.nan,
        'y_start': 455000,
        'y_step': 500,
        'y_stop': 526000
    })

    y = shape.get_y_coordinates()
    assert False
示例#2
0
def test_get_y_coordinates():
    shape = Shape({
        'x_number': 143,
        'x_start': 84000,
        'x_step': 500,
        'x_stop': 155000,
        'y_number': 143,
        'y_start': 455000,
        'y_step': 500,
        'y_stop': 526000
    })

    y = shape.get_y_coordinates()

    assert len(y) == shape.y_number