コード例 #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
コード例 #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
コード例 #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
コード例 #4
0
ファイル: test_util.py プロジェクト: dejacode/about-code-tool
 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
コード例 #5
0
ファイル: test_util.py プロジェクト: dejacode/about-code-tool
 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
コード例 #6
0
ファイル: test_util.py プロジェクト: dejacode/about-code-tool
 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