def test_validate_pos(self): self.vehicle.pos = (0, 0) another_vehicle = Vehicle( self.user_configs, target_vector=Vector(400, 600) ) self.simulation.add_vehicle(another_vehicle) another_vehicle.pos = (0, 25) self.assertEqual(another_vehicle.validate_pos((0, 3)), Vector(0, 15))