示例#1
0
 def setUp(self):
     super(_ScmTest, self).setUp()
     scunch._setUpEncoding()
示例#2
0
 def setUp(self):
     scunch._setUpEncoding()
示例#3
0
 def testRunWithUmlautEcho(self):
     scunch._setUpEncoding()
     scunch.run([u"echo", u'h\xe4ll\xf6'])
示例#4
0
 def testRunWithUmlautEchoResult(self):
     scunch._setUpEncoding()
     hello = u'h\xe4ll\xf6'
     helloWithUmlauts = scunch.run([u'echo', hello], returnStdout=True)
     normalizedHelloPy = [unicodedata.normalize(scunch._consoleNormalization, hello)]
     self.assertEqual(helloWithUmlauts, normalizedHelloPy)
示例#5
0
 def testRunWithAsciiEcho(self):
     scunch._setUpEncoding()
     scunch.run([u"echo", u"hello"])