def setUpClass(cls): cls.parser = pyparse.Parser(indentwidth=4, tabwidth=4)
def test_trans(self): # trans is the production instance of ParseMap, used in _study1 parser = pyparse.Parser(4, 4) self.assertEqual('\t a([{b}])b"c\'d\n'.translate(pyparse.trans), 'xxx(((x)))x"x\'x\n')