ui: reinstate actions from the old 'Repository' menu
[git-cola.git] / t / t0001-git-commands.py
blob941987d7e28616b3ed1dcbd1893a7fc709e20df3
1 #!/usr/bin/env python
2 import os
3 import unittest
5 import testutils
6 from testmodel import TestModel
8 from cola import git
10 class GitCommandTest(unittest.TestCase):
11 def setUp(self):
12 self.git = git.Git(os.getcwd())
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' )
27 if __name__ == '__main__':
28 unittest.main()