コード例 #1
0
	def test_shquote_runsh(self):
		"""That echo is identity for a funky_string."""
		self.assertEqual(
			u.runsh('echo -n %s' % u.shquote(ShTestCase.funky_string)),
			ShTestCase.funky_string
		)
コード例 #2
0
	def test_shquote(self):
		"""That quoting with shquote() == quoting manually."""
		self.assertEqual(
			u.shquote(ShTestCase.funky_string),
			ShTestCase.funky_string_quoted
		)