Skip to content
This repository has been archived by the owner on Mar 29, 2021. It is now read-only.

Commit

Permalink
Added docstrings to the rest of the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
zerok committed Jun 16, 2009
1 parent 60bb908 commit 9d6b303
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions zerokspot/recipe/git/tests.py
Expand Up @@ -28,16 +28,25 @@ def test_repo_url(self):
self.assertEqual('test', get_reponame(t))

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'))

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'))

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'))
Expand Down Expand Up @@ -93,6 +102,9 @@ def testFetch(self):
self.assertTrue(os.path.exists(os.path.join(self.tempdir, 'parts', 'gittest', 'test.txt')))

def testRaiseExceptionOnAbsentCache(self):
"""
install-from-cache without cache should raise an exception
"""
testing.write(self.tempdir, 'buildout.cfg', """
[buildout]
parts = gittest
Expand Down

0 comments on commit 9d6b303

Please sign in to comment.