def METHOD_NAME(self):
    locator = Locator()
    locator.template_extension = 'bar'
    self.assertEqual(locator.make_file_name('foo'), 'foo.bar')
    locator.template_extension = False
    self.assertEqual(locator.make_file_name('foo'), 'foo')
    locator.template_extension = ''
    self.assertEqual(locator.make_file_name('foo'), 'foo.')