예제 #1
0
 def test_get_rparts_3(self):
     self.assertEqual(
         posixpath.sep.join(("Commons", "Core")),
         CABRuleTools.get_dirshort("a/BTC/Commons/Core",
                                   2,
                                   pathmodule=posixpath))
예제 #2
0
 def test_get_rparts_5(self):
     self.assertEqual(
         "Core", CABRuleTools.get_dirshort("Core", 2, pathmodule=posixpath))
예제 #3
0
 def test_get_rparts_2(self):
     self.assertEqual(
         "Core",
         CABRuleTools.get_dirshort("a/BTC/Commons/Core",
                                   1,
                                   pathmodule=posixpath))