view tests/test-encoding.py @ 193:32e8d51ec16c

util: make cmdbuilder() robust for faulty parsing of early options Also fixed handling of positional arguments.
author Yuya Nishihara <yuya@tcha.org>
date Sat, 11 Nov 2017 19:52:48 +0900
parents c1b966866ed7
children
line wrap: on
line source

from tests import common
import hglib
from hglib.util import b

class test_encoding(common.basetest):
    def test_basic(self):
        self.client = hglib.open(encoding='utf-8')
        self.assertEquals(self.client.encoding, b('utf-8'))