def test_TransferralGoal_validate_target_location_1_false(): target_1 = {'shows': [{'position': {'x': 1, 'y': 0, 'z': 1}}]} goal = TransferralGoal('') assert not goal.validate_target_location( 1, {'position': { 'x': 2.9, 'y': 0, 'z': 1 }}, [target_1], geometry.ORIGIN_LOCATION) assert not goal.validate_target_location( 1, {'position': { 'x': 1, 'y': 0, 'z': 2.9 }}, [target_1], geometry.ORIGIN_LOCATION) assert not goal.validate_target_location( 1, {'position': { 'x': -0.9, 'y': 0, 'z': 1 }}, [target_1], geometry.ORIGIN_LOCATION) assert not goal.validate_target_location( 1, {'position': { 'x': 1, 'y': 0, 'z': -0.9 }}, [target_1], geometry.ORIGIN_LOCATION)
def test_TransferralGoal_validate_target_location_0(): goal = TransferralGoal('') assert goal.validate_target_location(0, {}, [], geometry.ORIGIN_LOCATION)