Пример #1
0
 def test_do_not_convert_posix_path(self, mock_os):
     mock_os.name = "posix"
     self.assertEqual(self.current_working_dir,
                      to_posix_path(self.current_working_dir))
Пример #2
0
 def test_do_not_convert_posix_path(self, mock_os):
     mock_os.name = "posix"
     self.assertEquals(self.current_working_dir, to_posix_path(self.current_working_dir))
Пример #3
0
 def test_convert_posix_path_if_windows_style_path(self, mock_os):
     mock_os.name = "nt"
     self.assertEqual(self.posixpath, to_posix_path(self.ntpath))
Пример #4
0
 def test_convert_posix_path_if_windows_style_path(self, mock_os):
     mock_os.name = "nt"
     self.assertEquals(self.posixpath, to_posix_path(self.ntpath))