Exemplo n.º 1
0
 def setUp(self):
     super(_ScmTest, self).setUp()
     scunch._setUpEncoding()
Exemplo n.º 2
0
 def setUp(self):
     scunch._setUpEncoding()
Exemplo n.º 3
0
 def testRunWithUmlautEcho(self):
     scunch._setUpEncoding()
     scunch.run([u"echo", u'h\xe4ll\xf6'])
Exemplo n.º 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)
Exemplo n.º 5
0
 def testRunWithAsciiEcho(self):
     scunch._setUpEncoding()
     scunch.run([u"echo", u"hello"])