Пример #1
0
def test_check_uv4():
    v = 2
    u = 0.1
    assert not utilities.check_params([u, v])
Пример #2
0
def test_check_uv2():
    u = 2
    v = 0.1
    assert not utilities.check_params([u, v])
Пример #3
0
def test_check_uv3():
    v = -0.1
    u = 0.1
    assert not utilities.check_params([u, v])
Пример #4
0
def test_check_uv4():
    v = 2
    u = 0.1
    assert not utilities.check_params([u, v])
Пример #5
0
def test_check_uv1():
    u = -0.1
    v = 0.1
    assert not utilities.check_params([u, v])
Пример #6
0
def test_check_uv3():
    v = -0.1
    u = 0.1
    assert not utilities.check_params([u, v])
Пример #7
0
def test_check_uv2():
    u = 2
    v = 0.1
    assert not utilities.check_params([u, v])
Пример #8
0
def test_check_uv1():
    u = -0.1
    v = 0.1
    assert not utilities.check_params([u, v])
Пример #9
0
def test_check_uv4():
    with pytest.raises(ValueError):
        v = 2
        u = 0.1
        utilities.check_params([u, v])
Пример #10
0
def test_check_uv2():
    with pytest.raises(ValueError):
        u = 2
        v = 0.1
        utilities.check_params([u, v])