File: test_parents.py

package info (click to toggle)
python-hglib 2.6.2-3
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 496 kB
  • sloc: python: 3,245; makefile: 20
file content (15 lines) | stat: -rw-r--r-- 477 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from tests import common
from hglib.util import b

class test_parents(common.basetest):
    def test_noparents(self):
        self.assertEqual(self.client.parents(), None)

    def test_basic(self):
        self.append('a', 'a')
        rev, node = self.client.commit(b('first'), addremove=True)
        self.assertEqual(node, self.client.parents()[0].node)
        self.assertEqual(node, self.client.parents(file=b('a'))[0].node)

    def test_two_parents(self):
        pass