Пример #1
0
 def test7(self):
     a = Path('a/b/')
     self.assertEqual(a.get_pathtoroot(), '../')
Пример #2
0
 def test3(self):
     a = Path('/a/b')
     self.assertEqual(a.get_pathtoroot(), '../')
Пример #3
0
 def test5(self):
     a = Path('/a/very/long/path')
     self.assertEqual(a.get_pathtoroot(), '../../../')
Пример #4
0
 def test2(self):
     a = Path('/a/')
     self.assertEqual(a.get_pathtoroot(), '')
Пример #5
0
 def test7(self):
     a = Path('a/b/')
     self.assertEqual(a.get_pathtoroot(), '../')
Пример #6
0
 def test5(self):
     a = Path('/a/very/long/path')
     self.assertEqual(a.get_pathtoroot(), '../../../')
Пример #7
0
 def test3(self):
     a = Path('/a/b')
     self.assertEqual(a.get_pathtoroot(), '../')
Пример #8
0
 def test2(self):
     a = Path('/a/')
     self.assertEqual(a.get_pathtoroot(), '')