def METHOD_NAME(self):
    pc = LeoPluginsController()
    table = (
        ('x', 'x'),
        ('foo.bar', 'foo.bar'),
        ('x.py', 'leo.plugins.x'),
        ('leo.plugins.x', 'leo.plugins.x')
    )
    for fn, expected in table:
        result = pc.regularizeName(fn)
        self.assertEqual(result, expected, msg=fn)
        # Make sure that calling regularizeName twice is benign.
        result2 = pc.regularizeName(result)
        assert result2 == result