Exemplo n.º 1
0
 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
Exemplo n.º 2
0
 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
Exemplo n.º 3
0
 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
Exemplo n.º 4
0
 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
Exemplo n.º 5
0
 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
Exemplo n.º 6
0
 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