def test_escape_argument_path_with_space(self): ''' Test to make sure we encode path arguments containing spaces correctly ''' encoded = win_functions.escape_argument('C:\\Some Path\\With Spaces') self.assertEqual(encoded, '^"C:\\Some Path\\With Spaces^"')
def test_escape_argument_with_space(self): ''' Test to make sure we encode arguments containing spaces correctly ''' encoded = win_functions.escape_argument('with space') self.assertEqual(encoded, '^"with space^"')
def test_escape_argument_simple_path(self): ''' Test to make sure we encode simple path arguments correctly ''' encoded = win_functions.escape_argument('C:\\some\\path') self.assertEqual(encoded, 'C:\\some\\path')
def test_escape_argument_simple_path(self): """ Test to make sure we encode simple path arguments correctly """ encoded = win_functions.escape_argument("C:\\some\\path") self.assertEqual(encoded, "C:\\some\\path")
def test_escape_argument_simple(self): ''' Test to make sure we encode simple arguments correctly ''' encoded = win_functions.escape_argument('simple') self.assertEqual(encoded, 'simple')
def test_escape_argument_simple(self): """ Test to make sure we encode simple arguments correctly """ encoded = win_functions.escape_argument("simple") self.assertEqual(encoded, "simple")
def test_escape_argument_path_with_space(): """ Test to make sure we encode path arguments containing spaces correctly """ encoded = win_functions.escape_argument("C:\\Some Path\\With Spaces") assert encoded == '^"C:\\Some Path\\With Spaces^"'
def test_escape_argument_simple_path(): """ Test to make sure we encode simple path arguments correctly """ encoded = win_functions.escape_argument("C:\\some\\path") assert encoded == "C:\\some\\path"
def test_escape_argument_with_space(): """ Test to make sure we encode arguments containing spaces correctly """ encoded = win_functions.escape_argument("with space") assert encoded == '^"with space^"'
def test_escape_argument_simple(): """ Test to make sure we encode simple arguments correctly """ encoded = win_functions.escape_argument("simple") assert encoded == "simple"