

def test_numeric_rev(self):
    '\n        git.latest with numeric revision\n        '
    name = os.path.join(integration.TMP, 'salt_repo')
    try:
        ret = self.run_state('git.latest', name='https://{0}/saltstack/salt-test-repo.git'.format(self.__domain), rev=0.11, target=name, submodules=True, timeout=120)
        self.assertSaltTrueReturn(ret)
        self.assertTrue(os.path.isdir(os.path.join(name, '.git')))
    finally:
        shutil.rmtree(name, ignore_errors=True)

dataset/ETHPy150Open saltstack/salt/tests/integration/states/git.py GitTest.test_numeric_rev/original