Exemplo n.º 1
0
 def testCompressPathForDisplay(self):
     assert compressPathForDisplay("/a/b.txt", 30) == "/a/b.txt"
     path = "/test/bla/bla/this_is_a_very_long_filename_bla_bla.txt"
     for l in [5, 10, 15, 20, 30]:
         assert len(compressPathForDisplay(path, l)) == l
Exemplo n.º 2
0
 def testCompressPathForDisplay(self):
     assert compressPathForDisplay("/a/b.txt", 30) == "/a/b.txt"
     path = "/test/bla/bla/this_is_a_very_long_filename_bla_bla.txt"
     for l in [5,10,15,20,30]:
         assert len(compressPathForDisplay(path, l)) == l