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 )
def test_shquote(self): """That quoting with shquote() == quoting manually.""" self.assertEqual( u.shquote(ShTestCase.funky_string), ShTestCase.funky_string_quoted )