Exemplo n.º 1
0
def test_parse_header_valid_device_pose(caplog):
    caplog.set_level(logging.INFO)
    header = '240x180_0.001_7_0.32703257_-0.6232807_-0.6007507_0.3790359_-0.0071239285_-0.0012060514_0.0050547933'
    Depthmap.parse_header(header)
    assert "device_pose looks wrong" not in caplog.text
Exemplo n.º 2
0
def test_parse_header_invalid_device_pose(caplog):
    caplog.set_level(logging.INFO)
    header = '240x180_0.001_7_0.5_-0.5_0.5_0.5_0.0_-0.0_-0.0'
    Depthmap.parse_header(header)
    assert "device_pose looks wrong" in caplog.text