7 class GitCommandTest(unittest
.TestCase
):
11 def testGitVersion(self
):
12 version
= self
.git
.version()
13 self
.failUnless(version
.startswith('git version'))
16 tags
= self
.git
.tag().splitlines()
17 self
.failUnless( 'v1.0.0' in tags
)
19 def testGitShow(self
):
20 id = '1b9742bda5d26a4f250fa64657f66ed20624a084'
21 contents
= self
.git
.show(id).splitlines()
22 self
.failUnless(contents
[0] == '/build')
24 if __name__
== '__main__':