6 from testmodel
import TestModel
10 class GitCommandTest(unittest
.TestCase
):
14 def testGitVersion(self
):
15 version
= self
.git
.version()
16 self
.failUnless( version
.startswith('git version') )
19 tags
= self
.git
.tag().splitlines()
20 self
.failUnless( 'v0.0' in tags
)
22 def testGitShow(self
):
23 id = '1b9742bda5d26a4f250fa64657f66ed20624a084'
24 contents
= self
.git
.show(id).splitlines()
25 self
.failUnless( contents
[0] == '/build' )
28 if __name__
== '__main__':