Lines Matching refs:normalizeLocation
540 assert doc.normalizeLocation(dict(axisName_a=0)) == {'axisName_a': 0.0}
541 assert doc.normalizeLocation(dict(axisName_a=1000)) == {'axisName_a': 1.0}
543 assert doc.normalizeLocation(dict(axisName_a=1001)) == {'axisName_a': 1.0}
544 assert doc.normalizeLocation(dict(axisName_a=500)) == {'axisName_a': 0.5}
545 assert doc.normalizeLocation(dict(axisName_a=-1000)) == {'axisName_a': -1.0}
546 assert doc.normalizeLocation(dict(axisName_a=-1001)) == {'axisName_a': -1.0}
548 assert doc.normalizeLocation(dict(axisName_a=(1000, -1000))) == {'axisName_a': 1.0}
566 assert doc.normalizeLocation(dict(axisName_b=0)) == {'axisName_b': 0.0}
567 assert doc.normalizeLocation(dict(axisName_b=1000)) == {'axisName_b': 1.0}
569 assert doc.normalizeLocation(dict(axisName_b=1001)) == {'axisName_b': 1.0}
570 assert doc.normalizeLocation(dict(axisName_b=500)) == {'axisName_b': 0.4444444444444444}
571 assert doc.normalizeLocation(dict(axisName_b=-1000)) == {'axisName_b': 0.0}
572 assert doc.normalizeLocation(dict(axisName_b=-1001)) == {'axisName_b': 0.0}
574 assert doc.normalizeLocation(dict(axisName_b=(1000,-1000))) == {'axisName_b': 1.0}
575 assert doc.normalizeLocation(dict(axisName_b=1001)) == {'axisName_b': 1.0}
593 assert doc.normalizeLocation(dict(ccc=0)) == {'ccc': 0.0}
594 assert doc.normalizeLocation(dict(ccc=1)) == {'ccc': 0.0}
595 assert doc.normalizeLocation(dict(ccc=-1000)) == {'ccc': -1.0}
596 assert doc.normalizeLocation(dict(ccc=-1001)) == {'ccc': -1.0}