def test_to_native_from_mixed(self): test = r'/this/that\this' if on_windows: expected = r'\this\that\this' else: expected = r'/this/that/this' result = util.to_native(test) assert expected == result
def test_to_native_from_posix(self): test = r'/this/that' if on_windows: expected = r'\this\that' else: expected = test result = util.to_native(test) assert expected == result
def test_to_native_from_win(self): test = r'c:\this\that' if on_posix: expected = 'c:/this/that' else: expected = test result = util.to_native(test) assert expected == result