Lines Matching refs:normalizeLocation
542 assert doc.normalizeLocation(dict(axisName_a=0)) == {'axisName_a': 0.0}
543 assert doc.normalizeLocation(dict(axisName_a=1000)) == {'axisName_a': 1.0}
545 assert doc.normalizeLocation(dict(axisName_a=1001)) == {'axisName_a': 1.0}
546 assert doc.normalizeLocation(dict(axisName_a=500)) == {'axisName_a': 0.5}
547 assert doc.normalizeLocation(dict(axisName_a=-1000)) == {'axisName_a': -1.0}
548 assert doc.normalizeLocation(dict(axisName_a=-1001)) == {'axisName_a': -1.0}
550 assert doc.normalizeLocation(dict(axisName_a=(1000, -1000))) == {'axisName_a': 1.0}
568 assert doc.normalizeLocation(dict(axisName_b=0)) == {'axisName_b': 0.0}
569 assert doc.normalizeLocation(dict(axisName_b=1000)) == {'axisName_b': 1.0}
571 assert doc.normalizeLocation(dict(axisName_b=1001)) == {'axisName_b': 1.0}
572 assert doc.normalizeLocation(dict(axisName_b=500)) == {'axisName_b': 0.4444444444444444}
573 assert doc.normalizeLocation(dict(axisName_b=-1000)) == {'axisName_b': 0.0}
574 assert doc.normalizeLocation(dict(axisName_b=-1001)) == {'axisName_b': 0.0}
576 assert doc.normalizeLocation(dict(axisName_b=(1000,-1000))) == {'axisName_b': 1.0}
577 assert doc.normalizeLocation(dict(axisName_b=1001)) == {'axisName_b': 1.0}
595 assert doc.normalizeLocation(dict(ccc=0)) == {'ccc': 0.0}
596 assert doc.normalizeLocation(dict(ccc=1)) == {'ccc': 0.0}
597 assert doc.normalizeLocation(dict(ccc=-1000)) == {'ccc': -1.0}
598 assert doc.normalizeLocation(dict(ccc=-1001)) == {'ccc': -1.0}