@staticmethod
    def by_path(application_path):
        for (dirname, cvstype, msg) in [(".git", CVSType.GIT, 'GitConfigFound'),
                                        (".bzr", CVSType.BZR, 'BazaarConfigFound')]:
            if os.path.exists(os.path.join(application_path, dirname)):
                return (cvstype, msg)

        return (None, None)
Attempting to re-activate an already-activated account fails.
dataset/ETHPy150Open cloudControl/cctrl/cctrl/app.py/CVSType.by_path--crossover with--dataset/ETHPy150Open codesters/codesters/registration/tests/models.py/RegistrationModelTests.test_activation_already_activated