Ejemplo n.º 1
0
 def test_layout_tests_dir_with_backslash_sep(self):
     filesystem = MockFileSystem()
     filesystem.sep = '\\'
     filesystem.path_to_module = lambda _: (
         'C:\\mock-checkout\\third_party\\WebKit\\Tools\\Scripts\\webkitpy\\foo.py')
     finder = PathFinder(filesystem)
     self.assertEqual(
         finder.layout_tests_dir(),
         'C:\\mock-checkout\\third_party\\WebKit\\LayoutTests')