File: test-move.py

package info (click to toggle)
python-hglib 1.4-1~bpo70%2B1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy-backports
  • size: 312 kB
  • sloc: python: 2,098; makefile: 20
file content (14 lines) | stat: -rw-r--r-- 413 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import common, os

class test_move(common.basetest):
    def test_basic(self):
        self.append('a', 'a')
        self.client.add('a')
        self.assertTrue(self.client.move('a', 'b'))

    # hg returns 0 even if there were warnings
    #def test_warnings(self):
    #    self.append('a', 'a')
    #    self.client.add('a')
    #    os.mkdir('c')
    #    self.assertFalse(self.client.move(['a', 'b'], 'c'))