view tests/test_move.py @ 226:7b6ea46ea111

setup.py: clean up use of os.popen
author Mathias De Mare <mathias.de_mare@nokia.com>
date Tue, 14 Mar 2023 10:23:08 +0100
parents 8341f2494b3f
children
line wrap: on
line source

import os
from tests import common
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'))