Exemplo n.º 1
0
def testLoadConfig():
    cf = TEST_CONF
    sd = ScaleDetection()
    sd.loadConfigFile(config_file=cf)
    assert sd.x_scale is not None
    assert sd.y_scale is not None
    assert sd.units is not None
Exemplo n.º 2
0
def testLoadConfigFail():
    cf = "abc"
    sd = ScaleDetection()
    f = sd.loadConfigFile(config_file=cf)
    assert f == False