Esempio n. 1
0
 def testBranchAndRev(self):
     """
     Test reponame with branch and revision
     """
     from zerokspot.recipe.git import get_reponame
     self.assertEqual(
         'test@1234', get_reponame('http://domain.com/test.git', 'cool-feature', '1234'))
Esempio n. 2
0
 def testBranch(self):
     """
     Test reponame with branch
     """
     from zerokspot.recipe.git import get_reponame
     self.assertEqual(
         'test@cool-feature', get_reponame('http://domain.com/test.git', 'cool-feature'))
Esempio n. 3
0
 def testRev(self):
     """
     Test reponame with revision
     """
     from zerokspot.recipe.git import get_reponame
     self.assertEqual(
         'test@1234', get_reponame('http://domain.com/test.git', rev='1234'))
Esempio n. 4
0
 def testBranchAndRev(self):
     """
     Test reponame with branch and revision
     """
     from zerokspot.recipe.git import get_reponame
     self.assertEqual(
         'test@1234', get_reponame('http://domain.com/test.git', 'cool-feature', '1234'))
Esempio n. 5
0
 def testBranch(self):
     """
     Test reponame with branch
     """
     from zerokspot.recipe.git import get_reponame
     self.assertEqual(
         'test@cool-feature', get_reponame('http://domain.com/test.git', 'cool-feature'))
Esempio n. 6
0
 def testRev(self):
     """
     Test reponame with revision
     """
     from zerokspot.recipe.git import get_reponame
     self.assertEqual(
         'test@1234', get_reponame('http://domain.com/test.git', rev = '1234'))
Esempio n. 7
0
    def testBranchAndRev(self):
        """
        Test reponame with branch and revision
        """
        from zerokspot.recipe.git import get_reponame

        self.assertEqual("test@1234", get_reponame("http://domain.com/test.git", "cool-feature", "1234"))
Esempio n. 8
0
    def testRev(self):
        """
        Test reponame with revision
        """
        from zerokspot.recipe.git import get_reponame

        self.assertEqual("test@1234", get_reponame("http://domain.com/test.git", rev="1234"))
Esempio n. 9
0
    def testBranch(self):
        """
        Test reponame with branch
        """
        from zerokspot.recipe.git import get_reponame

        self.assertEqual("test@cool-feature", get_reponame("http://domain.com/test.git", "cool-feature"))
Esempio n. 10
0
    def test_repo_url(self):
        """
        Tests for get_reponame.
        """

        from zerokspot.recipe.git import get_reponame
        tests = (
                'http://domain.com/test/',
                'http://domain.com/test.git',
                'http://domain.com/test.git/',
                'http://domain.com/test',
                '/Users/test/repos/test'
                )
        for t in tests:
            self.assertEqual('test', get_reponame(t))
Esempio n. 11
0
    def test_repo_url(self):
        """
        Tests for get_reponame.
        """

        from zerokspot.recipe.git import get_reponame
        tests = (
                'http://domain.com/test/', 
                'http://domain.com/test.git', 
                'http://domain.com/test.git/',
                'http://domain.com/test',
                '/Users/test/repos/test'
                )
        for t in tests:
            self.assertEqual('test', get_reponame(t))
Esempio n. 12
0
    def test_repo_url(self):
        """
        Tests for get_reponame.
        """

        from zerokspot.recipe.git import get_reponame

        tests = (
            "http://domain.com/test/",
            "http://domain.com/test.git",
            "http://domain.com/test.git/",
            "http://domain.com/test",
            "/Users/test/repos/test",
        )
        for t in tests:
            self.assertEqual("test", get_reponame(t))