view tests/test-move.py @ 143:4359cabcb0cc

hglib: move string literals in the test code to util.b() (issue4520)
author Brett Cannon <brett@python.org>
date Mon, 09 Mar 2015 18:26:25 -0400
parents a2fc0a7f648e
children c1b966866ed7
line wrap: on
line source

import common, os
from hglib.util import b

class test_move(common.basetest):
    def test_basic(self):
        self.append('a', 'a')
        self.client.add(b('a'))
        self.assertTrue(self.client.move(b('a'), b('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'))