def temp():
    return LppType.get_lpp_type(103)
Ejemplo n.º 2
0
def ts():
    return LppType.get_lpp_type(133)
Ejemplo n.º 3
0
def test_init_invalid_type():
    with pytest.raises(Exception):
        LppType("foo", "bar", 42, 42, None, None)
Ejemplo n.º 4
0
def test_init_invalid_dim():
    with pytest.raises(Exception):
        LppType(42, "foo", 42, "foo", None, None)
Ejemplo n.º 5
0
def test_init_invalid_sizes_len():
    with pytest.raises(ValueError):
        LppType(42, "foobar", [1, 1], [1], [False])
Ejemplo n.º 6
0
def test_get_lpp_type_none():
    assert not LppType.get_lpp_type(999)
Ejemplo n.º 7
0
def pres():
    return LppType.get_lpp_type(102)
Ejemplo n.º 8
0
def test_init_invalid_scales():
    with pytest.raises(TypeError):
        LppType(42, "foobar", [1], 42, [False])
Ejemplo n.º 9
0
def dio():
    return LppType.get_lpp_type(0)
Ejemplo n.º 10
0
def aio():
    return LppType.get_lpp_type(2)
Ejemplo n.º 11
0
def freq():
    return LppType.get_lpp_type(118)
Ejemplo n.º 12
0
def cur():
    return LppType.get_lpp_type(117)
Ejemplo n.º 13
0
def hum():
    return LppType.get_lpp_type(104)
Ejemplo n.º 14
0
def test_lpp_type_init_invalid_size():
    with pytest.raises(Exception):
        LppType(42, "foo", "foo", 42, None, None)
Ejemplo n.º 15
0
def vol():
    return LppType.get_lpp_type(116)
Ejemplo n.º 16
0
def test_init_invalid_name():
    with pytest.raises(TypeError):
        LppType(42, 42, [1], [1], [False])
Ejemplo n.º 17
0
def gyro():
    return LppType.get_lpp_type(134)
Ejemplo n.º 18
0
def test_init_invalid_signs():
    with pytest.raises(TypeError):
        LppType(42, "foobar", [1], [1], 42)
Ejemplo n.º 19
0
def lum():
    return LppType.get_lpp_type(101)
Ejemplo n.º 20
0
def test_get_lpp_type_invalid():
    with pytest.raises(TypeError):
        LppType.get_lpp_type("foo")
Ejemplo n.º 21
0
def gen():
    return LppType.get_lpp_type(100)
Ejemplo n.º 22
0
def test_init_invalid_type():
    with pytest.raises(TypeError):
        LppType("foobar", "foobar", [1], [1], [False])
Ejemplo n.º 23
0
def gps():
    return LppType.get_lpp_type(136)
Ejemplo n.º 24
0
def test_init_invalid_name():
    with pytest.raises(Exception):
        LppType(42, 42, 42, 42, None, None)
Ejemplo n.º 25
0
def acc():
    return LppType.get_lpp_type(113)
Ejemplo n.º 26
0
def load():
    return LppType.get_lpp_type(122)
Ejemplo n.º 27
0
def baro():
    return LppType.get_lpp_type(115)