Exemple #1
0
 def test_get_command_output_returns_sequence_of_lines(self):
     self.assertEqual(["1", "2"],
                      address.get_command_output("echo", "1\n2"))
Exemple #2
0
 def test_get_command_output_uses_C_locale(self):
     locale = parse_locale_lines(address.get_command_output("locale"))
     self.assertEqual("C.UTF-8", locale["LC_CTYPE"])
     self.assertEqual("C.UTF-8", locale["LC_MESSAGES"])
     self.assertEqual("C.UTF-8", locale["LANG"])
Exemple #3
0
 def test_get_command_output_executes_command(self):
     self.assertEqual(["Hello"],
                      address.get_command_output("echo", "Hello"))
Exemple #4
0
 def test_get_command_output_does_not_expand_arguments(self):
     self.assertEqual(["$*"], address.get_command_output("echo", "$*"))
Exemple #5
0
 def test_get_command_output_returns_sequence_of_lines(self):
     self.assertEqual(['1', '2'],
                      address.get_command_output('echo', '1\n2'))
Exemple #6
0
 def test_get_command_output_uses_C_locale(self):
     locale = parse_locale_lines(address.get_command_output('locale'))
     self.assertEqual('C.UTF-8', locale['LC_CTYPE'])
     self.assertEqual('C.UTF-8', locale['LC_MESSAGES'])
     self.assertEqual('C.UTF-8', locale['LANG'])
Exemple #7
0
 def test_get_command_output_executes_command(self):
     self.assertEqual(["Hello"],
                      address.get_command_output('echo', 'Hello'))
Exemple #8
0
 def test_get_command_output_uses_C_locale(self):
     locale = parse_locale_lines(address.get_command_output('locale'))
     self.assertEqual('C', locale['LC_CTYPE'])
     self.assertEqual('C', locale['LC_MESSAGES'])
     self.assertEqual('en_US.UTF-8', locale['LANG'])
Exemple #9
0
 def test_get_command_output_returns_sequence_of_lines(self):
     self.assertEqual(
         ['1', '2'], address.get_command_output('echo', '1\n2'))
Exemple #10
0
 def test_get_command_output_does_not_expand_arguments(self):
     self.assertEqual(["$*"], address.get_command_output('echo', '$*'))
Exemple #11
0
 def test_get_command_output_executes_command(self):
     self.assertEqual(
         ["Hello"], address.get_command_output('echo', 'Hello'))