示例#1
0
 def test_unix_file_with_ext(self):
     unix_file = "test/found/under/unix.sh"
     expected = [unix_file, "test\\found\\under\\unix.sh"]
     self.assertEqual(expected, testname_utils.denormalize_test_file(unix_file))
示例#2
0
 def test_windows_file_with_non_exe_ext(self):
     windows_file = "test\\found\\under\\windows.sh"
     expected = ["test/found/under/windows.sh", windows_file]
     self.assertEqual(expected, testname_utils.denormalize_test_file(windows_file))
示例#3
0
 def test_unix_file_is_denormalized(self):
     unix_file = "test/found/under/unix"
     expected = [unix_file, "test\\found\\under\\unix.exe"]
     self.assertEqual(expected, testname_utils.denormalize_test_file(unix_file))
示例#4
0
 def test_windows_file_is_denormalized(self):
     windows_file = "test\\found\\under\\windows.exe"
     expected = ["test/found/under/windows", windows_file]
     self.assertEqual(expected, testname_utils.denormalize_test_file(windows_file))