예제 #1
0
 def test_nat_paths_list3(self):
     self.assertEqual(commonpath.natural(self.list3), normpath('C:/Users/Adam Smith/Documents'))
예제 #2
0
 def test_nat_paths_max_depth(self):
     self.assertEqual(commonpath.natural(self.list2, max_depth=3), normpath('/home/user1'))
예제 #3
0
 def test_nat_paths(self):
     self.assertEqual(commonpath.natural(self.list2), normpath('/home/user1/tmp'))