Exemplo n.º 1
0
 def test_common_path_prefix13(self):
     test = paths.common_path_prefix("/a/c/e/x.txt", "/a/d/")
     assert ("a", 1) == test
Exemplo n.º 2
0
 def test_common_path_prefix17(self):
     test = paths.common_path_prefix("/a/a.txt", "/a/b.txt/")
     assert ("a", 1) == test
Exemplo n.º 3
0
 def test_common_path_prefix_no_match(self):
     test = paths.common_path_prefix("/abc/d", "/abe/f")
     assert (None, 0) == test
Exemplo n.º 4
0
 def test_common_path_prefix8(self):
     test = paths.common_path_prefix("/a/b/c/", "/a/b")
     assert ("a/b", 2) == test
Exemplo n.º 5
0
 def test_common_path_prefix10(self):
     test = paths.common_path_prefix('/a/b/c.txt', '/a/b/b.txt')
     assert ('a/b', 2) == test
Exemplo n.º 6
0
 def test_common_path_prefix19(self):
     test = paths.common_path_prefix('/a/c.txt', '/a/')
     assert ('a', 1) == test
Exemplo n.º 7
0
 def test_common_path_prefix10(self):
     test = paths.common_path_prefix('/a/b/c.txt', '/a/b/b.txt')
     assert ('a/b', 2) == test
Exemplo n.º 8
0
 def test_common_path_prefix_path_elements_are_similar(self):
     test = paths.common_path_prefix('/a/b/c', '/a/b/d')
     assert ('a/b', 2) == test
Exemplo n.º 9
0
 def test_common_path_prefix_ignore_training_slashes(self):
     test = paths.common_path_prefix('/a/b/c/', '/a/b/c/')
     assert ('a/b/c', 3) == test
Exemplo n.º 10
0
 def test_common_path_prefix8(self):
     test = paths.common_path_prefix('/a/b/c/', '/a/b')
     assert ('a/b', 2) == test
Exemplo n.º 11
0
 def test_common_path_prefix_no_match(self):
     test = paths.common_path_prefix('/abc/d', '/abe/f')
     assert (None, 0) == test
Exemplo n.º 12
0
 def test_common_path_prefix_path_elements_are_similar(self):
     test = paths.common_path_prefix('/a/b/c', '/a/b/d')
     assert ('a/b', 2) == test
Exemplo n.º 13
0
 def test_common_path_prefix_root_path(self):
     test = paths.common_path_prefix('/', '/a/b/c')
     assert (None, 0) == test
Exemplo n.º 14
0
 def test_common_path_prefix20(self):
     test = paths.common_path_prefix("/a/c/", "/a/d/")
     assert ("a", 1) == test
Exemplo n.º 15
0
 def test_common_path_prefix13(self):
     test = paths.common_path_prefix('/a/c/e/x.txt', '/a/d/')
     assert ('a', 1) == test
Exemplo n.º 16
0
 def test_common_path_prefix4(self):
     test = paths.common_path_prefix('/a', '/a')
     assert ('a', 1) == test
Exemplo n.º 17
0
 def test_common_path_prefix16(self):
     test = paths.common_path_prefix('/a/c/e/', '/a/c/f/')
     assert ('a/c', 2) == test
Exemplo n.º 18
0
 def test_common_path_prefix_ignore_training_slashes(self):
     test = paths.common_path_prefix('/a/b/c/', '/a/b/c/')
     assert ('a/b/c', 3) == test
Exemplo n.º 19
0
 def test_common_path_prefix17(self):
     test = paths.common_path_prefix('/a/a.txt', '/a/b.txt/')
     assert ('a', 1) == test
Exemplo n.º 20
0
 def test_common_path_prefix16(self):
     test = paths.common_path_prefix('/a/c/e/', '/a/c/f/')
     assert ('a/c', 2) == test
Exemplo n.º 21
0
 def test_common_path_prefix19(self):
     test = paths.common_path_prefix('/a/c.txt', '/a/')
     assert ('a', 1) == test
Exemplo n.º 22
0
 def test_common_path_prefix4(self):
     test = paths.common_path_prefix('/a', '/a')
     assert ('a', 1) == test
Exemplo n.º 23
0
 def test_common_path_prefix20(self):
     test = paths.common_path_prefix('/a/c/', '/a/d/')
     assert ('a', 1) == test
Exemplo n.º 24
0
 def test_common_path_prefix_ignore_training_slashes(self):
     test = paths.common_path_prefix("/a/b/c/", "/a/b/c/")
     assert ("a/b/c", 3) == test
Exemplo n.º 25
0
 def test_common_path_prefix3(self):
     test = paths.common_path_prefix('/a/b', '/a/b/c')
     assert test == ('a/b', 2)
Exemplo n.º 26
0
 def test_common_path_prefix10(self):
     test = paths.common_path_prefix("/a/b/c.txt", "/a/b/b.txt")
     assert ("a/b", 2) == test
Exemplo n.º 27
0
 def test_common_path_prefix_root_path(self):
     test = paths.common_path_prefix('/', '/a/b/c')
     assert test == (None, 0)
Exemplo n.º 28
0
 def test_common_path_prefix16(self):
     test = paths.common_path_prefix("/a/c/e/", "/a/c/f/")
     assert ("a/c", 2) == test
Exemplo n.º 29
0
 def test_common_path_prefix11(self):
     test = paths.common_path_prefix('/a/b/c.txt', '/a/b.txt')
     assert test == ('a', 1)
Exemplo n.º 30
0
 def test_common_path_prefix19(self):
     test = paths.common_path_prefix("/a/c.txt", "/a/")
     assert ("a", 1) == test
Exemplo n.º 31
0
 def test_common_path_prefix12(self):
     test = paths.common_path_prefix('/a/c/e/x.txt', '/a/d/a.txt')
     assert test == ('a', 1)
Exemplo n.º 32
0
 def test_common_path_prefix1(self):
     test = paths.common_path_prefix('/a/b/c', '/a/b/c')
     assert ('a/b/c', 3) == test
Exemplo n.º 33
0
 def test_common_path_prefix15(self):
     test = paths.common_path_prefix('/a/c/e/', '/a/c/a.txt')
     assert test == ('a/c', 2)
Exemplo n.º 34
0
 def test_common_path_prefix_root_root(self):
     test = paths.common_path_prefix('/', '/')
     assert (None, 0) == test
Exemplo n.º 35
0
 def test_common_path_prefix18(self):
     test = paths.common_path_prefix('/a/c/', '/a/')
     assert test == ('a', 1)
Exemplo n.º 36
0
 def test_common_path_prefix_no_match(self):
     test = paths.common_path_prefix('/abc/d', '/abe/f')
     assert (None, 0) == test
Exemplo n.º 37
0
 def test_common_path_prefix1(self):
     test = paths.common_path_prefix("/a/b/c", "/a/b/c")
     assert ("a/b/c", 3) == test
Exemplo n.º 38
0
 def test_common_path_prefix8(self):
     test = paths.common_path_prefix('/a/b/c/', '/a/b')
     assert ('a/b', 2) == test
Exemplo n.º 39
0
 def test_common_path_prefix4(self):
     test = paths.common_path_prefix("/a", "/a")
     assert ("a", 1) == test
Exemplo n.º 40
0
 def test_common_path_prefix13(self):
     test = paths.common_path_prefix('/a/c/e/x.txt', '/a/d/')
     assert ('a', 1) == test
Exemplo n.º 41
0
 def test_common_path_prefix_root_root(self):
     test = paths.common_path_prefix("/", "/")
     assert (None, 0) == test
Exemplo n.º 42
0
 def test_common_path_prefix17(self):
     test = paths.common_path_prefix('/a/a.txt', '/a/b.txt/')
     assert ('a', 1) == test
Exemplo n.º 43
0
 def test_common_path_prefix_path_elements_are_similar(self):
     test = paths.common_path_prefix("/a/b/c", "/a/b/d")
     assert ("a/b", 2) == test
Exemplo n.º 44
0
 def test_common_path_prefix20(self):
     test = paths.common_path_prefix('/a/c/', '/a/d/')
     assert ('a', 1) == test
Exemplo n.º 45
0
 def test_common_path_prefix1(self):
     test = paths.common_path_prefix('/a/b/c', '/a/b/c')
     assert ('a/b/c', 3) == test