gitmodel: implement fetch/push/pull_helper()
[git-cola.git] / t / t0001-git-commands.py
blobefd53b7bf8ba2af3fd74086dcc933296adff07bc
1 #!/usr/bin/env python
2 import os
3 import unittest
5 import testutils
6 from testmodel import TestModel
8 import git
10 class GitCommandTest(unittest.TestCase):
11 def setUp(self):
12 self.git = git.Git()
14 def testGitVersion(self):
15 version = self.git.version()
16 self.failUnless( version.startswith('git version') )
18 def testGitTag(self):
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__':
29 unittest.main()