To be honest, the fact that loc_mapper() is global in the product code, and the name is used as a global here, but to refer to a different function, makes me want even more for you to change how this is organized.  `self.loc_mapper` is a fine way to access the fake function used for the test.  Call it `self.fake_loc_mapper` if that makes you feel better.